isLightMode property

bool get isLightMode

Returns true if the currently active theme is the built-in light theme.

This only returns true for the default 'light' theme. Custom themes with Brightness.light will not be considered light mode.

Example:

if (Themed.isLightMode) {
  print('Light theme is active');
}

Implementation

static bool get isLightMode => _instance._currentThemeName == 'light';