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