copyWith method

GiphySettings copyWith({
  1. GiphyTheme? theme,
  2. List<GiphyContentType>? mediaTypeConfig,
  3. bool? showConfirmationScreen,
  4. GiphyRating? rating,
  5. GiphyRendition? renditionType,
  6. GiphyClipsRendition? clipsPreviewRenditionType,
  7. GiphyRendition? confirmationRenditionType,
  8. bool? showCheckeredBackground,
  9. int? stickerColumnCount,
  10. GiphyContentType? selectedContentType,
  11. bool? showSuggestionsBar,
  12. bool? enableDynamicText,
  13. GiphyFileFormat? fileFormat,
  14. bool? disableEmojiVariations,
})

Creates a copy of this settings object with the given overrides.

The following fields can be overridden:

theme, mediaTypeConfig, showConfirmationScreen, rating, renditionType, clipsPreviewRenditionType, confirmationRenditionType, showCheckeredBackground, stickerColumnCount, selectedContentType, showSuggestionsBar, enableDynamicText, fileFormat, disableEmojiVariations.

Returns a new instance of GiphySettings.

Implementation

GiphySettings copyWith({
  GiphyTheme? theme,
  List<GiphyContentType>? mediaTypeConfig,
  bool? showConfirmationScreen,
  GiphyRating? rating,
  GiphyRendition? renditionType,
  GiphyClipsRendition? clipsPreviewRenditionType,
  GiphyRendition? confirmationRenditionType,
  bool? showCheckeredBackground,
  int? stickerColumnCount,
  GiphyContentType? selectedContentType,
  bool? showSuggestionsBar,
  bool? enableDynamicText,
  GiphyFileFormat? fileFormat,
  bool? disableEmojiVariations,
}) {
  return GiphySettings(
    theme: theme ?? this.theme,
    mediaTypeConfig: mediaTypeConfig ?? this.mediaTypeConfig,
    showConfirmationScreen:
        showConfirmationScreen ?? this.showConfirmationScreen,
    rating: rating ?? this.rating,
    renditionType: renditionType ?? this.renditionType,
    clipsPreviewRenditionType:
        clipsPreviewRenditionType ?? this.clipsPreviewRenditionType,
    confirmationRenditionType:
        confirmationRenditionType ?? this.confirmationRenditionType,
    showCheckeredBackground:
        showCheckeredBackground ?? this.showCheckeredBackground,
    stickerColumnCount: stickerColumnCount ?? this.stickerColumnCount,
    selectedContentType: selectedContentType ?? this.selectedContentType,
    showSuggestionsBar: showSuggestionsBar ?? this.showSuggestionsBar,
    enableDynamicText: enableDynamicText ?? this.enableDynamicText,
    fileFormat: fileFormat ?? this.fileFormat,
    disableEmojiVariations:
        disableEmojiVariations ?? this.disableEmojiVariations,
  );
}