ColorScheme constructor

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

Create a ColorScheme instance.

Implementation

const ColorScheme({
  @required this.primary,
  @required this.primaryVariant,
  @required this.secondary,
  @required this.secondaryVariant,
  @required this.surface,
  @required this.background,
  @required this.error,
  @required this.onPrimary,
  @required this.onSecondary,
  @required this.onSurface,
  @required this.onBackground,
  @required this.onError,
  @required this.brightness,
}) : 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);