copyWith method

Background copyWith({
  1. int? id,
  2. bool? isDefault,
  3. bool? isDark,
  4. String? name,
  5. Document? document,
  6. BackgroundType? type,
})

Implementation

Background copyWith({
  int? id,
  bool? isDefault,
  bool? isDark,
  String? name,
  Document? document,
  BackgroundType? type,
}) => Background(
  id: id ?? this.id,
  isDefault: isDefault ?? this.isDefault,
  isDark: isDark ?? this.isDark,
  name: name ?? this.name,
  document: document ?? this.document,
  type: type ?? this.type,
);