GalleryAsset constructor

const GalleryAsset({
  1. required String id,
  2. required StoryMediaType type,
  3. required int width,
  4. required int height,
  5. Duration? duration,
})

Creates an asset.

Implementation

const GalleryAsset({
  required this.id,
  required this.type,
  required this.width,
  required this.height,
  this.duration,
});