effectiveLightTheme property
BaseThemeConfig?
get
effectiveLightTheme
Get the effective light theme (preferred or first light theme).
Returns the preferred light theme if set and exists, otherwise returns the first light theme.
Implementation
BaseThemeConfig? get effectiveLightTheme {
if (_preferredLightThemeId != null) {
final BaseThemeConfig<dynamic>? preferred = getThemeById(
_preferredLightThemeId!,
);
if (preferred != null && preferred.type == NyThemeType.light) {
return preferred;
}
}
return lightTheme;
}