KonectarEvents/lib/contacts_module/provider_class/patent_provider.dart

23 lines
636 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/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);
}
}