TurnHandoffEvent class
Emitted before this task stops serving the stream mid-turn (e.g. a server restart).
The turn's state is persisted; a reconnect carrying resume_from_sequence_number continues it on another task.
Constructors
- TurnHandoffEvent({String? reason, String? turnId})
- TurnHandoffEvent.fromJson(Map json_)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- reason ↔ String?
-
Why the stream is handing off.
Possible string values are:
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- turnId ↔ String?
-
Identifies the turn to resume.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited