copyWith method
StreamPhotoGalleryTile
copyWith({
- Key? key,
- AssetEntity? media,
- bool? selected,
- GestureTapCallback? onTap,
- GestureLongPressCallback? onLongPress,
- ThumbnailSize? thumbnailSize,
- ThumbnailFormat? thumbnailFormat,
- int? thumbnailQuality,
- double? thumbnailScale,
Creates a copy of this tile but with the given fields replaced with the new values.
Implementation
StreamPhotoGalleryTile copyWith({
Key? key,
AssetEntity? media,
bool? selected,
GestureTapCallback? onTap,
GestureLongPressCallback? onLongPress,
ThumbnailSize? thumbnailSize,
ThumbnailFormat? thumbnailFormat,
int? thumbnailQuality,
double? thumbnailScale,
}) =>
StreamPhotoGalleryTile(
key: key ?? this.key,
media: media ?? this.media,
selected: selected ?? this.selected,
onTap: onTap ?? this.onTap,
onLongPress: onLongPress ?? this.onLongPress,
thumbnailSize: thumbnailSize ?? this.thumbnailSize,
thumbnailFormat: thumbnailFormat ?? this.thumbnailFormat,
thumbnailQuality: thumbnailQuality ?? this.thumbnailQuality,
thumbnailScale: thumbnailScale ?? this.thumbnailScale,
);