utils/constants/init_location_service library

Functions

deleteAllLocationData() → void
deletes all the location notifications of the logged in atsign being shared with any atsign
deleteLocationData(LocationNotificationModel locationNotificationModel) Future<bool>
deletes the location notification of the logged in atsign being shared with locationNotificationModel.receiver
getAllNotification() Stream
returns a Stream of 'KeyLocationModel' having all the shared and request location keys.
getAtKey(String regexKey) → AtKey
returns the 'AtKey' of the regexKey
initializeLocationService(AtClientImpl atClientImpl, String currentAtSign, GlobalKey<NavigatorState> navKey, {required String mapKey, required String apiKey, bool showDialogBox = false, String rootDomain = MixedConstants.ROOT_DOMAIN, Function? getAtValue, dynamic streamAlternative(List<KeyLocationModel>)?}) → void
Function to initialise the package. Should be mandatorily called before accessing package functionalities.
sendRequestLocationNotification(String atsign) Future<bool?>
sends a request location notification to the atsign. before calling this atsign should be checked if valid or not.
sendShareLocationNotification(String atsign, int? minutes) Future<bool?>
sends a share location notification to the atsign, with a 'ttl' of minutes. before calling this atsign should be checked if valid or not.