29 lines
574 B
Dart
29 lines
574 B
Dart
import 'package:discover_module/service.dart/service.dart';
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
class EventProvider extends ChangeNotifier {
|
|
final apicall = Callapi();
|
|
|
|
List eventlist = [];
|
|
|
|
List get EventsList => eventlist;
|
|
|
|
List alleventlist = [];
|
|
|
|
List get allEventsList => alleventlist;
|
|
|
|
geteventdata() async {
|
|
final events = await apicall.geteventsdata();
|
|
|
|
eventlist = events;
|
|
notifyListeners();
|
|
}
|
|
|
|
allgeteventdata() async {
|
|
final events = await apicall.allgeteventsdata();
|
|
|
|
alleventlist = events;
|
|
notifyListeners();
|
|
}
|
|
}
|