selectMode method

void selectMode(
  1. ThemeMode? mode
)

Selects mode, falling back to ThemeMode.system when null, and keeps the current theme.

Implementation

void selectMode(ThemeMode? mode) =>
    updateTheme(state.theme, mode ?? ThemeMode.system);