17 lines
427 B
Dart
17 lines
427 B
Dart
|
import 'package:discover_module/service.dart/service.dart';
|
||
|
import 'package:flutter/cupertino.dart';
|
||
|
|
||
|
class LocationProvider extends ChangeNotifier {
|
||
|
final apicall = Callapi();
|
||
|
List loclist = [];
|
||
|
|
||
|
List get locationlist => loclist;
|
||
|
|
||
|
locationinfo(text) async {
|
||
|
print("Location_Text");
|
||
|
final publication_result = await apicall.getlocationsdata(text);
|
||
|
loclist = publication_result;
|
||
|
notifyListeners();
|
||
|
}
|
||
|
}
|