DiscoverModule/lib/contacts_module/provider_class/certificate_provider.dart

23 lines
639 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/cer_hive/crud_cer.dart';
2024-08-30 12:24:54 +00:00
import 'package:flutter/cupertino.dart';
class CertificateProvider extends ChangeNotifier {
final apicall = Callapi();
List cerlist = [];
List get certificatelist => cerlist;
certificateinfo(text) async {
print("Location_Text");
final email_result = await apicall.getcerlistdata(text);
cerlist = email_result;
notifyListeners();
}
2024-10-07 12:41:28 +00:00
storeCer(row) async {
final cerResult = await apicall.getcerlistdata(row);
await addCer(cerResult);
}
2024-08-30 12:24:54 +00:00
}