DiscoverModule/lib/contacts_module/provider_class/procedureprovider.dart

23 lines
629 B
Dart
Raw Normal View History

2024-10-07 12:41:28 +00:00
import 'package:discover_module/contacts_module/service.dart/service.dart';
import 'package:discover_module/contacts_module/storage_hive/procedure_data/crud_pro.dart';
2024-08-30 12:24:54 +00:00
import 'package:flutter/cupertino.dart';
class ProcedureProvider extends ChangeNotifier {
final apicall = Callapi();
List procedurelist = [];
List get prolist => procedurelist;
proinfo(text) async {
print("Location_Text");
final nih_result = await apicall.getprodata(text);
procedurelist = nih_result;
notifyListeners();
}
2024-10-07 12:41:28 +00:00
storePro(row) async {
final proData = await apicall.getprodata(row);
await addPro(proData);
}
2024-08-30 12:24:54 +00:00
}