TransportManager class
Keeps track of the number of lives left for a transport. In the beginning of a session, transports may be assigned a number of lives. When an AssistantToTheTransportManager instance reports a transport connection closed uncleanly, the transport loses a life. When the number of lives drops to zero, the transport gets disabled by its manager.
- Annotations
-
- @JS()
Constructors
- TransportManager(TransportManagerOptions options)
-
factory
- TransportManager.fakeConstructor$()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- livesLeft ↔ num
-
getter/setter pair
- options ↔ TransportManagerOptions
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getAssistant(
Transport transport) → AssistantToTheTransportManager - Creates a assistant for the transport.
-
isAlive(
) → bool - Returns whether the transport has any lives left.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reportDeath(
) → dynamic - Takes one life from the transport.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited