StatesTransition constructor

StatesTransition(
  1. StatesMeta? from,
  2. StatesMeta? to,
  3. String action, [
  4. StatesTransitionHandler? handler,
])

Creates a new action. The action method is optional.

@param fromState State to move form. @param toState State to move to. @param name Action's name. @param action Method to call on performing action.

Implementation

StatesTransition(StatesMeta? from, StatesMeta? to, String action, [StatesTransitionHandler? handler]) {
  _from = from;
  _to = to;
  _action = action;
  append(handler);
}