activeLeafStates method

List<StateDefinition<State>> activeLeafStates()

returns a StateDefinition for all active states

Implementation

List<StateDefinition> activeLeafStates() {
  final defs = <StateDefinition>[];

  for (final active in _leafPaths) {
    if (active.isNotEmpty) {
      defs.add(active.leaf);
    }
  }
  return defs;
}