SendLocationNotification class

masterSwitchState will control whether location is sent to any user

locationPromptDialog will be called whenever package is about to send location and masterSwitchState is false.

Make sure that locationPromptDialog is a dialog or a function which can ask the user to turn the masterSwitchState true if needed.

Constructors

SendLocationNotification()
factory

Properties

atClient ↔ AtClientImpl?
getter/setter pair
atsignsToShareLocationWith List<LocationNotificationModel?>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
locationKey String
final
locationPromptDialog Function?
getter/setter pair
masterSwitchState bool
getter/setter pair
positionStream StreamSubscription<Position>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timer Timer?
getter/setter pair

Methods

addMember(LocationNotificationModel? notification) Future<void>
deleteAllLocationKey() → void
findAtSignsToShareLocationWith() → void
init(AtClientImpl? newAtClient) → void
newAtKey(int ttr, String key, String? sharedWith, {int? ttl}) → AtKey
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepareLocationDataAndSend(LocationNotificationModel notification, LatLng myLocation) Future<void>
removeMember(String? key) → void
sendLocation() → void
sendNull(LocationNotificationModel locationNotificationModel) Future<bool>
setLocationPrompt(Function _locationPrompt) → void
setMasterSwitchState(bool _state) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited