17 lines
405 B
Dart
17 lines
405 B
Dart
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();
|
|
}
|
|
}
|