StreamSubscribeState enum Null safety

订阅状态。

Constants

Idle → const StreamSubscribeState

加入频道后的初始订阅状态。

@JsonValue(0)
const StreamSubscribeState(0)
NoSubscribed → const StreamSubscribeState

订阅失败。可能是因为:

@JsonValue(1)
const StreamSubscribeState(1)
Subscribed → const StreamSubscribeState

收到了远端流,订阅成功。

@JsonValue(3)
const StreamSubscribeState(3)
Subscribing → const StreamSubscribeState

正在订阅。

@JsonValue(2)
const StreamSubscribeState(2)
values → const List<StreamSubscribeState>

A constant List of the values in this enum, in order of their declaration.

const List<StreamSubscribeState>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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