theme property

String? get theme

The persisted theme preference (light, dark, or system), or null.

Implementation

String? get theme => _kv.read(_themeKey);
set theme (String? value)

Implementation

set theme(String? value) =>
    value == null ? _kv.remove(_themeKey) : _kv.write(_themeKey, value);