setMaterialThemeMode method
void
setMaterialThemeMode(
- ThemeMode value
Changes the standalone Material light/dark selection.
Implementation
void setMaterialThemeMode(material.ThemeMode value) {
if (!config.useStandaloneDesign) {
throw StateError('setMaterialThemeMode requires a standalone SintApp.');
}
config = config.copyWith(materialThemeMode: value);
update();
}