import 'package:discover_module/contacts_module/service.dart/service.dart'; import 'package:discover_module/contacts_module/storage_hive/patent_data/crud_patent.dart'; import 'package:flutter/cupertino.dart'; class PatentProvider extends ChangeNotifier { final apicall = Callapi(); List palist = []; List get patentlist => palist; patentinfo(text) async { print("Location_Text"); final patent_result = await apicall.getpatentdata(text); palist = patent_result; notifyListeners(); } storePet(row) async { final patentresult = await apicall.getpatentdata(row); await addPatent(patentresult); } }