import 'package:discover_module/contacts_module/service.dart/service.dart'; import 'package:discover_module/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); } }