copyWith method
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,
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,
);
}