theme method
ThemeData?
theme(
- ThemeMode mode
Gets the theme data for the specified theme mode. ThemeMode.system
resolves through currentMode. Returns null if no theme data is
configured. Reactive: reads inside an Observer rebuild on change.
Implementation
ThemeData? theme(ThemeMode mode) =>
_themeMap[mode == ThemeMode.system ? currentMode.value : mode];