createAllStates static method

Map<ComponentType, ThemeableState> createAllStates()

Create new state instances for all registered components. Phase 1.4.10.2: Use stateBuilder from registry instead of manual initialization.

Implementation

static Map<ComponentType, ThemeableState> createAllStates() {
  return Map.fromEntries(
    _components.entries.map((entry) => MapEntry(
      entry.key,
      entry.value.stateBuilder(),
    )),
  );
}