getMyLocationInfo function
will return details of my booleans for this LocationNotificationModel
Implementation
LocationInfo? getMyLocationInfo(LocationNotificationModel _event) {
String _id = trimAtsignsFromKey(_event.key!);
if (!compareAtSign(_event.atsignCreator!,
AtClientManager.getInstance().atClient.getCurrentAtSign()!)) {
return null;
}
if (SendLocationNotification().allAtsignsLocationData[_event.receiver] !=
null) {
if (SendLocationNotification()
.allAtsignsLocationData[_event.receiver]!
.locationSharingFor[_id] !=
null) {
var _locationSharingFor = SendLocationNotification()
.allAtsignsLocationData[_event.receiver]!
.locationSharingFor[_id]!;
return LocationInfo(
isSharing: _locationSharingFor.isSharing,
isExited: _locationSharingFor.isExited,
isAccepted: _locationSharingFor.isAccepted);
}
}
return null;
}