FlexSchemeOnColors constructor

const FlexSchemeOnColors({
  1. required Color onPrimary,
  2. Color? onPrimaryContainer,
  3. required Color onSecondary,
  4. Color? onSecondaryContainer,
  5. Color? onTertiary,
  6. Color? onTertiaryContainer,
  7. required Color onSurface,
  8. Color? onSurfaceVariant,
  9. Color? onInverseSurface,
  10. required Color onBackground,
  11. required Color onError,
  12. Color? onErrorContainer,
})

Default constructor. In most situations the factory FlexSchemeOnColors.from is the preferred way to create the onColors.

Implementation

const FlexSchemeOnColors({
  required this.onPrimary,
  this.onPrimaryContainer,
  required this.onSecondary,
  this.onSecondaryContainer,
  this.onTertiary,
  this.onTertiaryContainer,
  required this.onSurface,
  this.onSurfaceVariant,
  this.onInverseSurface,
  required this.onBackground,
  required this.onError,
  this.onErrorContainer,
});