BaseColor.highContrast constructor
const
BaseColor.highContrast({
- Color? color,
- Color? darkColor,
- CupertinoDynamicColor? dynamicColor = const CupertinoDynamicColor.withBrightness(color: Colors.black, darkColor: Colors.white),
- BaseParam? baseParam,
High contrast, generally used for background color Default: Brightness.light uses black, Brightness.dark uses white
Implementation
const BaseColor.highContrast({
this.color,
this.darkColor,
this.dynamicColor = const CupertinoDynamicColor.withBrightness(
color: Colors.black,
darkColor: Colors.white,
),
BaseParam? baseParam,
}) : assert(color != null || darkColor != null || dynamicColor != null),
super(baseParam: baseParam);