copyWith method
FlexSchemeSurfaceColors
copyWith({
- Color? surface,
- Color? surfaceDim,
- Color? surfaceBright,
- Color? surfaceContainerLowest,
- Color? surfaceContainerLow,
- Color? surfaceContainer,
- Color? surfaceContainerHigh,
- Color? surfaceContainerHighest,
- Color? inverseSurface,
- Color? scaffoldBackground,
- Color? dialogBackground,
- @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? surfaceVariant,
- @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? background,
Copy the object with one or more provided properties changed.
Implementation
FlexSchemeSurfaceColors copyWith({
Color? surface,
Color? surfaceDim,
Color? surfaceBright,
Color? surfaceContainerLowest,
Color? surfaceContainerLow,
Color? surfaceContainer,
Color? surfaceContainerHigh,
Color? surfaceContainerHighest,
Color? inverseSurface,
Color? scaffoldBackground,
Color? dialogBackground,
@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? surfaceVariant,
@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? background,
}) {
return FlexSchemeSurfaceColors(
surface: surface ?? this.surface,
surfaceDim: surfaceDim ?? this.surfaceDim,
surfaceBright: surfaceBright ?? this.surfaceBright,
surfaceContainerLowest:
surfaceContainerLowest ?? this.surfaceContainerLowest,
surfaceContainerLow: surfaceContainerLow ?? this.surfaceContainerLow,
surfaceContainer: surfaceContainer ?? this.surfaceContainer,
surfaceContainerHigh: surfaceContainerHigh ?? this.surfaceContainerHigh,
surfaceContainerHighest:
surfaceContainerHighest ?? this.surfaceContainerHighest,
inverseSurface: inverseSurface ?? this.inverseSurface,
scaffoldBackground: scaffoldBackground ?? this.scaffoldBackground,
dialogBackground: dialogBackground ?? this.dialogBackground,
);
}