copyWith method
FlexSchemeOnColors
copyWith({
- Color? onPrimary,
- Color? onPrimaryContainer,
- Color? onSecondary,
- Color? onSecondaryContainer,
- Color? onTertiary,
- Color? onTertiaryContainer,
- Color? onSurface,
- Color? onSurfaceVariant,
- Color? onSurfaceDim,
- Color? onSurfaceBright,
- Color? onSurfaceContainerLowest,
- Color? onSurfaceContainerLow,
- Color? onSurfaceContainer,
- Color? onSurfaceContainerHigh,
- Color? onSurfaceContainerHighest,
- Color? onInverseSurface,
- Color? onError,
- Color? 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.') Color? onBackground,
Copy the object with one or more provided properties changed.
Implementation
FlexSchemeOnColors copyWith({
Color? onPrimary,
Color? onPrimaryContainer,
Color? onSecondary,
Color? onSecondaryContainer,
Color? onTertiary,
Color? onTertiaryContainer,
Color? onSurface,
Color? onSurfaceVariant,
Color? onSurfaceDim,
Color? onSurfaceBright,
Color? onSurfaceContainerLowest,
Color? onSurfaceContainerLow,
Color? onSurfaceContainer,
Color? onSurfaceContainerHigh,
Color? onSurfaceContainerHighest,
Color? onInverseSurface,
Color? onError,
Color? 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.')
Color? onBackground,
}) {
return FlexSchemeOnColors(
onPrimary: onPrimary ?? this.onPrimary,
onPrimaryContainer: onPrimaryContainer ?? this.onPrimaryContainer,
onSecondary: onSecondary ?? this.onSecondary,
onSecondaryContainer: onSecondaryContainer ?? this.onSecondaryContainer,
onTertiary: onTertiary ?? this.onTertiary,
onTertiaryContainer: onTertiaryContainer ?? this.onTertiaryContainer,
onSurface: onSurface ?? this.onSurface,
onSurfaceVariant: onSurfaceVariant ?? this.onSurfaceVariant,
onSurfaceDim: onSurfaceDim ?? this.onSurfaceDim,
onSurfaceBright: onSurfaceBright ?? this.onSurfaceBright,
onSurfaceContainerLowest:
onSurfaceContainerLowest ?? this.onSurfaceContainerLowest,
onSurfaceContainerLow:
onSurfaceContainerLow ?? this.onSurfaceContainerLow,
onSurfaceContainer: onSurfaceContainer ?? this.onSurfaceContainer,
onSurfaceContainerHigh:
onSurfaceContainerHigh ?? this.onSurfaceContainerHigh,
onSurfaceContainerHighest:
onSurfaceContainerHighest ?? this.onSurfaceContainerHighest,
onInverseSurface: onInverseSurface ?? this.onInverseSurface,
onError: onError ?? this.onError,
onErrorContainer: onErrorContainer ?? this.onErrorContainer,
);
}