MediaItem constructor
- {required String mediaIdentifier,
- required String title,
- required String mediaTypeIdentifier,
- required String mediaSourceIdentifier,
- required int position,
- required int duration,
- required bool canDelete,
- required bool canEdit,
- Id? id,
- String? extraUrl,
- String? extra,
- String? base64Image,
- String? imageUrl,
- String? audioUrl,
- String? author,
- String? authorIdentifier,
- String? sourceMetadata}
Initialise a media item with certain details.
Implementation
MediaItem({
required this.mediaIdentifier,
required this.title,
required this.mediaTypeIdentifier,
required this.mediaSourceIdentifier,
required this.position,
required this.duration,
required this.canDelete,
required this.canEdit,
this.id,
this.extraUrl,
this.extra,
this.base64Image,
this.imageUrl,
this.audioUrl,
this.author,
this.authorIdentifier,
this.sourceMetadata,
});