copyWith method

FlexSchemeSurfaceColors copyWith({
  1. Color? surface,
  2. Color? surfaceVariant,
  3. Color? inverseSurface,
  4. Color? background,
  5. Color? scaffoldBackground,
  6. Color? dialogBackground,
})

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,
  );
}