copyWith method

  1. @override
ProfileShareThemeEmoji copyWith({
  1. List<EmojiType>? emojis,
  2. bool? useDefaultBackground,
  3. int? backgroundBackdropId,
})
override

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

Implementation

@override
ProfileShareThemeEmoji copyWith({
  List<EmojiType>? emojis,
  bool? useDefaultBackground,
  int? backgroundBackdropId,
}) => ProfileShareThemeEmoji(
  emojis: emojis ?? this.emojis,
  useDefaultBackground: useDefaultBackground ?? this.useDefaultBackground,
  backgroundBackdropId: backgroundBackdropId ?? this.backgroundBackdropId,
);