isCustomTheme property

bool get isCustomTheme

Returns true if the currently active theme is a custom theme.

A custom theme is any theme that is not the built-in 'light' or 'dark' theme.

Example:

if (Themed.isCustomTheme) {
  print('A custom theme is active: ${Themed.currentThemeName}');
}

Implementation

static bool get isCustomTheme =>
    _instance._currentThemeName != 'light' &&
    _instance._currentThemeName != 'dark';