copyWith method

SearchStickerSets copyWith({
  1. StickerType? stickerType,
  2. String? query,
})

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

Implementation

SearchStickerSets copyWith({
  StickerType? stickerType,
  String? query,
}) =>
    SearchStickerSets(
      stickerType: stickerType ?? this.stickerType,
      query: query ?? this.query,
    );