EventLocationShare 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
-
factory
Properties
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Methods
-
addMember(
EventNotificationModel _newData) → Future< void> - Will be called from addDataToList or mapUpdatedEventDataToWidget
-
init(
) → void -
newAtKey(
int ttr, String key, ) → AtKey -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prepareLocationDataAndSend(
EventNotificationModel _storedEventNotificationModel, LatLng _myLocation) → Future< void> -
removeMember(
String? key) → void - Will be called from addDataToList or mapUpdatedEventDataToWidget
-
sendLocation(
) → void -
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