OnDisconnect class
The OnDisconnect class allows you to write or clear data when your client disconnects from the database server.
See: firebase.google.com/docs/reference/js/firebase.database.OnDisconnect.
Constructors
- OnDisconnect.fromJsObject(OnDisconnectJsImpl jsObject)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- jsObject → OnDisconnectJsImpl
-
JS object.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancel(
) → Future - Cancels all previously queued onDisconnect() events for actual location and all children.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
) → Future - Ensures the data for actual location is deleted when the client is disconnected.
-
set(
dynamic value) → Future -
Ensures the data for actual location is set to the specified
value
when the client is disconnected. -
setWithPriority(
dynamic value, dynamic priority) → Future -
Ensures the data for actual location is set to the specified
value
andpriority
when the client is disconnected. -
toString(
) → String -
A string representation of this object.
inherited
-
update(
dynamic values) → Future -
Writes multiple
values
at actual location when the client is disconnected.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited