selectTheme method

void selectTheme(
  1. FluttyMaterialTheme? theme
)

Selects theme, falling back to FluttyMaterialTheme.defaultTheme when null, and keeps the current ThemeMode.

Implementation

void selectTheme(FluttyMaterialTheme? theme) =>
    updateTheme(theme ?? FluttyMaterialTheme.defaultTheme, state.mode);