isDark
Determines if this theme resolves to a dark appearance.
This extension function evaluates the theme's effective appearance based on the theme type and current system settings:
Theme.Light always returns
falseTheme.Dark always returns
trueTheme.System returns
trueif the system is in dark mode,falseotherwise
Return
true if the theme should display dark colors, false for light colors.