DiscoverModule/lib/provider_class/speaker_provider.dart

18 lines
382 B
Dart
Raw Normal View History

2024-08-13 10:46:26 +00:00
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();
}
}