19 lines
355 B
Dart
19 lines
355 B
Dart
|
import 'package:discover_module/service.dart/service.dart';
|
||
|
import 'package:flutter/foundation.dart';
|
||
|
|
||
|
class hcpProvider extends ChangeNotifier {
|
||
|
final apicall = Callapi();
|
||
|
|
||
|
List _list = [];
|
||
|
|
||
|
List get list => _list;
|
||
|
|
||
|
getHCPProvider() async {
|
||
|
final jsondata = await apicall.getallhcpdata();
|
||
|
|
||
|
_list = jsondata;
|
||
|
|
||
|
notifyListeners();
|
||
|
}
|
||
|
}
|