force method
Forces color resolution to a specified brightness
Implementation
Color? force(Brightness? brightness) {
if (this == null) return null;
if (brightness == null) return this;
final resolved = brightness == Brightness.dark ? this?.darkColor : this?.color;
return resolved ?? this!.color;
}