KonectarApp/lib/contacts_module/provider_class/k2_provider/kol_locationprovider.dart

17 lines
462 B
Dart
Raw Permalink Normal View History

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