setMaterialThemeMode method

void setMaterialThemeMode(
  1. 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();
}