getColors method
Get the current platform provided colors or generates a new color collection
from the provided fallbackColor
.
The colors will get generated from fallbackColor
if isCurrentPlatformSupported is false
or if useFallbackColor
is true.
Implementation
MonetColors getColors(
Color fallbackColor, {
bool useFallbackColor = false,
}) {
if (useFallbackColor) return _deriveColors(fallbackColor);
return _platformColors ?? _deriveColors(fallbackColor);
}