HotlineSocketConnectionState class Null safety
State manager for a Hotline connection
Constructors
- HotlineSocketConnectionState({required Function onConnect, required Function onDisconnect})
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- lastPing ← DateTime
-
Set the latest ping time from the socket
write-only
- onConnect ↔ Function
-
read / write
- onDisconnect ↔ Function
-
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- state ↔ HotlineSocketConnectionType
-
read / write
- stateType ← HotlineSocketConnectionType
-
setter to change our state and trigger additional effects such as our
onConnect callback, or cancelling the health-check timer
write-only
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
startTimer(
) → void -
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited