ColorScheme.light constructor

const ColorScheme.light({Color primary: const Color(0xff6200ee), Color primaryVariant: const Color(0xff3700b3), Color secondary: const Color(0xff03dac6), Color secondaryVariant: const Color(0xff018786), Color surface: Colors.white, Color background: Colors.white, Color error: const Color(0xffb00020), Color onPrimary: Colors.white, Color onSecondary: Colors.black, Color onSurface: Colors.black, Color onBackground: Colors.black, Color onError: Colors.white, Brightness brightness: Brightness.light })

Create a ColorScheme based on a purple primary color that matches the baseline Material color scheme.

Implementation

const ColorScheme.light({
  this.primary = const Color(0xff6200ee),
  this.primaryVariant = const Color(0xff3700b3),
  this.secondary = const Color(0xff03dac6),
  this.secondaryVariant = const Color(0xff018786),
  this.surface = Colors.white,
  this.background = Colors.white,
  this.error = const Color(0xffb00020),
  this.onPrimary = Colors.white,
  this.onSecondary = Colors.black,
  this.onSurface = Colors.black,
  this.onBackground = Colors.black,
  this.onError = Colors.white,
  this.brightness = Brightness.light,
}) : 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);