DiscoverModule/lib/provider_class/speaker_provider.dart

18 lines
382 B
Dart

import 'package:discover_module/service.dart/service.dart';
import 'package:flutter/cupertino.dart';
class SpekerEvalutionProvider extends ChangeNotifier {
final callapi = Callapi();
List speaker_data = [];
List get speaker => speaker_data;
getspeakerdata() async {
final data = await callapi.getSpeakerdata();
speaker_data = data;
notifyListeners();
}
}