DiscoverModule/lib/provider_class/publications_provider.dart

26 lines
638 B
Dart
Raw Normal View History

2024-07-05 08:48:29 +00:00
import 'package:discover_module/service.dart/service.dart';
import 'package:flutter/cupertino.dart';
class PublicatioProvider extends ChangeNotifier {
final apicall = Callapi();
List publist = [];
List get publicationlist => publist;
List allpublist = [];
List get allpublicationlist => allpublist;
publicatininfo() async {
final publication_result = await apicall.getpublicationsdata();
publist = publication_result;
notifyListeners();
}
allpublicatininfo() async {
final publication_result = await apicall.getallpublicationsdata();
allpublist = publication_result;
notifyListeners();
}
}