ColorScheme.highContrastDark constructor Null safety

const ColorScheme.highContrastDark(
  1. {Color primary,
  2. Color primaryVariant,
  3. Color secondary,
  4. Color secondaryVariant,
  5. Color surface,
  6. Color background,
  7. Color error,
  8. Color onPrimary,
  9. Color onSecondary,
  10. Color onSurface,
  11. Color onBackground,
  12. Color onError,
  13. Brightness brightness}
)

Create a high contrast ColorScheme based on the dark baseline Material color scheme.

Implementation

const ColorScheme.highContrastDark({
  this.primary = const Color(0xffefb7ff),
  this.primaryVariant = const Color(0xffbe9eff),
  this.secondary = const Color(0xff66fff9),
  this.secondaryVariant = const Color(0xff66fff9),
  this.surface = const Color(0xff121212),
  this.background = const Color(0xff121212),
  this.error = const Color(0xff9b374d),
  this.onPrimary = Colors.black,
  this.onSecondary = Colors.black,
  this.onSurface = Colors.white,
  this.onBackground = Colors.white,
  this.onError = Colors.black,
  this.brightness = Brightness.dark,
}) : assert(primary != null),
      assert(primaryVariant != null),
      assert(secondary != null),
      assert(secondaryVariant != null),
      assert(surface != null),
      assert(background != null),
      assert(error != null),
      assert(onPrimary != null),
      assert(onSecondary != null),
      assert(onSurface != null),
      assert(onBackground != null),
      assert(onError != null),
      assert(brightness != null);