effectiveDarkTheme property

BaseThemeConfig? get effectiveDarkTheme

Get the effective dark theme (preferred or first dark theme).

Returns the preferred dark theme if set and exists, otherwise returns the first dark theme.

Implementation

BaseThemeConfig? get effectiveDarkTheme {
  if (_preferredDarkThemeId != null) {
    final preferred = getThemeById(_preferredDarkThemeId!);
    if (preferred != null && preferred.type == NyThemeType.dark) {
      return preferred;
    }
  }
  return darkTheme;
}