ConnectedEvent class

A Kabelwerk event fired when the connection to the server is first established.

This could be either because Kabelwerk.connect was just invoked, or it could be due to automatically re-establishing the connection after a connection drop. In the former case, the Kabelwerk instance may not yet be ready to be used as it may still have to fetch some data from the server (such as the connected user's info).

Useful for displaying the connection's status to the user.

Inheritance

Constructors

ConnectedEvent(ConnectionState connectionState)

Properties

connectionState ConnectionState
The new connection state.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited