DiscoverModule/lib/provider_class/hcp _provider.dart

19 lines
355 B
Dart
Raw Normal View History

2024-06-27 08:38:43 +00:00
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();
}
}