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

17 lines
462 B
Dart

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