DiscoverModule/lib/provider_class/publications_provider.dart

26 lines
646 B
Dart

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(text) async {
final publication_result = await apicall.getpublicationsdata(text);
publist = publication_result;
notifyListeners();
}
allpublicatininfo() async {
final publication_result = await apicall.getallpublicationsdata();
allpublist = publication_result;
notifyListeners();
}
}