actions method
What are the valid actions you can perform from the current state?
@return An array of actions.
Implementation
List<StatesTransition> actions({String? from}) {
StatesMeta? base = from == null ? _currentStateMeta : _findStateMetaByName(from);
List<StatesTransition> actions = [];
for (var action in _transitions) {
if (action.at == base) {
actions.add(action);
}
}
return actions;
}