SwitchState enum

课堂自动切换(无感衔接)状态机。

  • idle:空闲,无切换任务。
  • preparing:收到 classEnd 并确认有 nextClassId,切换将开始。
  • switching:正在软销毁当前课堂 + 加入下一节。
  • retrying:一次切换失败后进入重试窗口(计划:一次重试)。
  • failed:切换失败且重试耗尽,等待 UI 兜底退回业务侧回调。
Inheritance
Available extensions

Values

idle → const SwitchState
preparing → const SwitchState
switching → const SwitchState
retrying → const SwitchState
failed → const SwitchState

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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

Constants

values → const List<SwitchState>
A constant List of the values in this enum, in order of their declaration.