BaseColor.highContrast constructor

const BaseColor.highContrast({
  1. Color? color,
  2. Color? darkColor,
  3. CupertinoDynamicColor? dynamicColor = const CupertinoDynamicColor.withBrightness(color: Colors.black, darkColor: Colors.white),
  4. 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);