copyWith method

ProfileShareThemeBackdrop copyWith({
  1. int? id,
  2. String? name,
  3. UpgradedGiftBackdropColors? colors,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

ProfileShareThemeBackdrop copyWith({
  int? id,
  String? name,
  UpgradedGiftBackdropColors? colors,
}) => ProfileShareThemeBackdrop(
  id: id ?? this.id,
  name: name ?? this.name,
  colors: colors ?? this.colors,
);