LocationNotificationModel class
Model containing all the information needed for location sharing.
Constructors
- LocationNotificationModel({double? lat, double? long, String? atsignCreator, String? receiver, DateTime? from, DateTime? to, bool isRequest = false, bool isAcknowledgment = false, bool isAccepted = false, bool isExited = false, bool isSharing = true, bool updateMap = false, bool rePrompt = false})
-
LocationNotificationModel.fromJson(Map<
String, dynamic> json)
Properties
- atContact ↔ AtContact?
-
getter/setter pair
- atsignCreator ↔ String?
-
atsignCreator who shares their location, receiver who receives the location.
getter/setter pair
- from ↔ DateTime?
-
start sharing location from,
stop sharing location to.
getter/setter pair
- getLatLng → LatLng
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAccepted ↔ bool
-
isAccepted if this notification is accepted,
isSharing if currently sharing for this notification,
isExited if this notification is exited,
isAcknowledgment if this is an acknowledgment for any notification,
isRequest if this notification is a request location notification.
rePrompt if this notification need to prompt the receiver again
getter/setter pair
- isAcknowledgment ↔ bool
-
isAccepted if this notification is accepted,
isSharing if currently sharing for this notification,
isExited if this notification is exited,
isAcknowledgment if this is an acknowledgment for any notification,
isRequest if this notification is a request location notification.
rePrompt if this notification need to prompt the receiver again
getter/setter pair
- isExited ↔ bool
-
isAccepted if this notification is accepted,
isSharing if currently sharing for this notification,
isExited if this notification is exited,
isAcknowledgment if this is an acknowledgment for any notification,
isRequest if this notification is a request location notification.
rePrompt if this notification need to prompt the receiver again
getter/setter pair
- isRequest ↔ bool
-
isAccepted if this notification is accepted,
isSharing if currently sharing for this notification,
isExited if this notification is exited,
isAcknowledgment if this is an acknowledgment for any notification,
isRequest if this notification is a request location notification.
rePrompt if this notification need to prompt the receiver again
getter/setter pair
- isSharing ↔ bool
-
isAccepted if this notification is accepted,
isSharing if currently sharing for this notification,
isExited if this notification is exited,
isAcknowledgment if this is an acknowledgment for any notification,
isRequest if this notification is a request location notification.
rePrompt if this notification need to prompt the receiver again
getter/setter pair
- key ↔ String?
-
atsignCreator who shares their location, receiver who receives the location.
getter/setter pair
- lat ↔ double?
-
lat,long co-ordinates being shared.
getter/setter pair
- long ↔ double?
-
lat,long co-ordinates being shared.
getter/setter pair
- receiver ↔ String?
-
atsignCreator who shares their location, receiver who receives the location.
getter/setter pair
- rePrompt ↔ bool
-
isAccepted if this notification is accepted,
isSharing if currently sharing for this notification,
isExited if this notification is exited,
isAcknowledgment if this is an acknowledgment for any notification,
isRequest if this notification is a request location notification.
rePrompt if this notification need to prompt the receiver again
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- to ↔ DateTime?
-
start sharing location from,
stop sharing location to.
getter/setter pair
- updateMap ↔ bool
-
isAccepted if this notification is accepted,
isSharing if currently sharing for this notification,
isExited if this notification is exited,
isAcknowledgment if this is an acknowledgment for any notification,
isRequest if this notification is a request location notification.
rePrompt if this notification need to prompt the receiver again
getter/setter pair
Methods
-
getAtContact(
) → dynamic -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
convertLocationNotificationToJson(
LocationNotificationModel locationNotificationModel) → String