DiscoverModule/lib/provider_class/patent_provider.dart

17 lines
405 B
Dart
Raw Normal View History

2024-08-30 12:24:54 +00:00
import 'package:discover_module/service.dart/service.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();
}
}