Event class abstract

Base class for all Events that you pass to the FSM.

All your Event class MUST extends the Event class

class Heat extends Event
{
  int joules;

  Heat({this.joules});
}

stateMachine.applyEvent(Heat(joules: 2000));

...

..on<Heat, Liquid>(condition: (s,e) => applyHeatAndReturnTemp(e.joules) > 0)

Constructors

Event()

Properties

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.
override

Operators

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