MediaItem constructor

MediaItem(
  1. {required String mediaIdentifier,
  2. required String title,
  3. required String mediaTypeIdentifier,
  4. required String mediaSourceIdentifier,
  5. required int position,
  6. required int duration,
  7. required bool canDelete,
  8. required bool canEdit,
  9. Id? id,
  10. String? extraUrl,
  11. String? extra,
  12. String? base64Image,
  13. String? imageUrl,
  14. String? audioUrl,
  15. String? author,
  16. String? authorIdentifier,
  17. 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,
});