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? onSurfaceDim,
  10. Color? onSurfaceBright,
  11. Color? onSurfaceContainerLowest,
  12. Color? onSurfaceContainerLow,
  13. Color? onSurfaceContainer,
  14. Color? onSurfaceContainerHighest,
  15. Color? onSurfaceContainerHigh,
  16. Color? onInverseSurface,
  17. required Color onError,
  18. Color? onErrorContainer,
  19. @Deprecated('This color was deprecated in FCS 8.0 because Flutter 3.22 ' 'deprecated the color. ' 'It no longer has any function in FCS v8 and will be removed in v9.') Color? onBackground,
})

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.onSurfaceDim,
  this.onSurfaceBright,
  this.onSurfaceContainerLowest,
  this.onSurfaceContainerLow,
  this.onSurfaceContainer,
  this.onSurfaceContainerHighest,
  this.onSurfaceContainerHigh,
  this.onInverseSurface,
  required this.onError,
  this.onErrorContainer,
  @Deprecated('This color was deprecated in FCS 8.0 because Flutter 3.22 '
      'deprecated the color. '
      'It no longer has any function in FCS v8 and will be removed in v9.')
  this.onBackground,
});