KonectarEvents/lib/contacts_module/provider_class/certificate_provider.dart

23 lines
639 B
Dart
Raw Permalink Normal View History

2024-10-08 12:01:59 +00:00
import 'package:konectar_events/contacts_module/service.dart/service.dart';
import 'package:konectar_events/contacts_module/storage_hive/cer_hive/crud_cer.dart';
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();
}
storeCer(row) async {
final cerResult = await apicall.getcerlistdata(row);
await addCer(cerResult);
}
}