import 'package:discover_module/contacts_module/service.dart/service.dart'; import 'package:discover_module/contacts_module/storage_hive/email_data/crud_email.dart'; import 'package:flutter/cupertino.dart'; class EmailProvider extends ChangeNotifier { final apicall = Callapi(); List emaillist = []; List get emailkollist => emaillist; emailinfo(text) async { print("Location_Text"); final email_result = await apicall.getemaildata(text); emaillist = email_result; notifyListeners(); } storeEmail(row) async { final emailresult = await apicall.getemaildata(row); await addEmail(emailresult); } }