DiscoverModule/lib/provider_class/location_provider.dart

17 lines
427 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 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();
}
}