statesById method
Returns a Map of StateView objects using unique String identifiers.
Implementation
Map<String, StateX> statesById(List<String> ids) {
final Map<String, StateX> map = {};
for (final id in ids) {
final state = stateById(id);
if (state != null) {
map[id] = state;
}
}
return map;
}