SpaSdk class
need singleton
Properties
- counterId → String
-
Counter id
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uriServiceSpa → String
-
Uri of the spa server
final
Methods
-
activateLocation(
) → Future - Activate the location if the location is not enabled or the permission is not granted ask the user to enable the location and grant the permission
-
auth(
String userId) → void - Set the user id and add this id to all events
-
getLocation(
) → Future< LocationData?> - Get the location data
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendEvent(
EventSpa event) → Future< void> -
Save and send the event to the server
or Send to Delete this event in hive bd
event
is the event which need to send add the default data to the event -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited