State class

Information that defines a state of a detector.

Constructors

State({required String stateName, OnEnterLifecycle? onEnter, OnExitLifecycle? onExit, OnInputLifecycle? onInput})
State.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
onEnter OnEnterLifecycle?
When entering this state, perform these actions if the condition is TRUE.
final
onExit OnExitLifecycle?
When exiting this state, perform these actions if the specified condition is TRUE.
final
onInput OnInputLifecycle?
When an input is received and the condition is TRUE, perform the specified actions.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stateName String
The name of the state.
final

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