copyWith method

  1. @override
InputMessageSticker copyWith({
  1. InputSticker? sticker,
  2. String? emoji,
})
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
InputMessageSticker copyWith({InputSticker? sticker, String? emoji}) =>
    InputMessageSticker(
      sticker: sticker ?? this.sticker,
      emoji: emoji ?? this.emoji,
    );