copyWith method

StreamPhotoGalleryTile copyWith({
  1. Key? key,
  2. AssetEntity? media,
  3. bool? selected,
  4. GestureTapCallback? onTap,
  5. GestureLongPressCallback? onLongPress,
  6. ThumbnailSize? thumbnailSize,
  7. ThumbnailFormat? thumbnailFormat,
  8. int? thumbnailQuality,
  9. 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,
    );