StatesTransition constructor
StatesTransition(
- StatesMeta? from,
- StatesMeta? to,
- String action, [
- 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);
}