17 lines
402 B
Dart
17 lines
402 B
Dart
import 'package:discover_module/service.dart/service.dart';
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
class NIHGrantsProvider extends ChangeNotifier {
|
|
final apicall = Callapi();
|
|
List nihlist = [];
|
|
|
|
List get nihgrantslist => nihlist;
|
|
|
|
nihinfo(text) async {
|
|
print("Location_Text");
|
|
final nih_result = await apicall.getnihdata(text);
|
|
nihlist = nih_result;
|
|
notifyListeners();
|
|
}
|
|
}
|