import 'package:discover_module/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(); } }