2024-10-07 12:41:28 +00:00
|
|
|
import 'package:discover_module/contacts_module/service.dart/k2_service/Apicall_k2.dart';
|
2024-08-30 12:24:54 +00:00
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
2024-10-07 12:41:28 +00:00
|
|
|
class LocationKolProvider extends ChangeNotifier {
|
|
|
|
final apicall = CallK2api();
|
2024-08-30 12:24:54 +00:00
|
|
|
List loclist = [];
|
|
|
|
|
|
|
|
List get locationlist => loclist;
|
|
|
|
|
|
|
|
locationinfo(text) async {
|
|
|
|
print("Location_Text");
|
|
|
|
final publication_result = await apicall.getlocationsdata(text);
|
|
|
|
loclist = publication_result;
|
|
|
|
notifyListeners();
|
|
|
|
}
|
|
|
|
}
|