sendShareLocationNotification function

Future<bool?> sendShareLocationNotification(
  1. String atsign,
  2. int? minutes
)

sends a share location notification to the atsign, with a 'ttl' of minutes. before calling this atsign should be checked if valid or not.

Implementation

Future<bool?> sendShareLocationNotification(String atsign, int? minutes) async {
  var result = await SharingLocationService()
      .sendShareLocationEvent(atsign, false, minutes: minutes);
  return result;
}