24 lines
625 B
Dart
24 lines
625 B
Dart
import 'package:konectar_events/contacts_module/model_class/single_hcpinfo.dart';
|
|
import 'package:konectar_events/contacts_module/service.dart/service.dart';
|
|
|
|
import 'package:flutter/foundation.dart';
|
|
|
|
class Singlehcpdetails extends ChangeNotifier {
|
|
final apicall = Callapi();
|
|
|
|
List<Userdetails> _singlehcplist = [];
|
|
|
|
List<Userdetails> get singlehcpinfo => _singlehcplist;
|
|
|
|
Future<void> hcpinfo() async {
|
|
final getdata = await apicall.getsinglehcpdata();
|
|
|
|
print("Provider_data: $getdata");
|
|
|
|
// _singlehcplist = getdata;
|
|
_singlehcplist.add(Userdetails.fromJson(getdata));
|
|
|
|
notifyListeners();
|
|
}
|
|
}
|