FlexSchemeOnColors constructor
const
FlexSchemeOnColors({
- required Color onPrimary,
- Color? onPrimaryContainer,
- required Color onSecondary,
- Color? onSecondaryContainer,
- Color? onTertiary,
- Color? onTertiaryContainer,
- required Color onSurface,
- Color? onSurfaceVariant,
- Color? onInverseSurface,
- required Color onBackground,
- required Color onError,
- 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,
});