copyWith method

  1. @override
EditableTableThemeData copyWith({
  1. Color? bg,
  2. Color? surface,
  3. Color? inputBg,
  4. Color? hover,
  5. Color? border,
  6. Color? borderStrong,
  7. Color? fg1,
  8. Color? fg2,
  9. Color? fg3,
  10. Color? fg4,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
EditableTableThemeData copyWith({
  Color? bg,
  Color? surface,
  Color? inputBg,
  Color? hover,
  Color? border,
  Color? borderStrong,
  Color? fg1,
  Color? fg2,
  Color? fg3,
  Color? fg4,
}) =>
    EditableTableThemeData(
      bg: bg ?? this.bg,
      surface: surface ?? this.surface,
      inputBg: inputBg ?? this.inputBg,
      hover: hover ?? this.hover,
      border: border ?? this.border,
      borderStrong: borderStrong ?? this.borderStrong,
      fg1: fg1 ?? this.fg1,
      fg2: fg2 ?? this.fg2,
      fg3: fg3 ?? this.fg3,
      fg4: fg4 ?? this.fg4,
    );