copyWith method

SearchInstalledStickerSets copyWith({
  1. StickerType? stickerType,
  2. String? query,
  3. int? limit,
})

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

Implementation

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