copyWith method
Copy the object with one or more provided properties changed.
Implementation
FlexSchemeSurfaceColors copyWith({
Color? surface,
Color? surfaceVariant,
Color? inverseSurface,
Color? background,
Color? scaffoldBackground,
Color? dialogBackground,
}) {
return FlexSchemeSurfaceColors(
surface: surface ?? this.surface,
surfaceVariant: surfaceVariant ?? this.surfaceVariant,
inverseSurface: inverseSurface ?? this.inverseSurface,
background: background ?? this.background,
scaffoldBackground: scaffoldBackground ?? this.scaffoldBackground,
dialogBackground: dialogBackground ?? this.dialogBackground,
);
}