statesList method
List<StateX<StatefulWidget> >
statesList({
- bool? reversed,
- StateX<
StatefulWidget> ? remove,
inherited
Return a List of available StateX objects
Implementation
List<StateX> statesList({bool? reversed, StateX? remove}) {
List<StateX> list;
// In reversed chronological order
if (reversed != null && reversed) {
list = _MapOfStates._states.values.toList().reversed.toList();
} else {
list = _MapOfStates._states.values.toList();
}
// Exclude a particular State.
if (remove != null) {
list.remove(remove);
}
return list.toList(growable: false);
}