MediaItem class Null safety

Representation of a media item (such as a photo or video) in Google Photos.


MediaItem({String? baseUrl, ContributorInfo? contributorInfo, String? description, String? filename, String? id, MediaMetadata? mediaMetadata, String? mimeType, String? productUrl})
MediaItem.fromJson(Map json_)


baseUrl String?
A URL to the media item's bytes.
read / write
contributorInfo ContributorInfo?
Information about the user who added this media item.
read / write
description String?
Description of the media item.
read / write
filename String?
Filename of the media item.
read / write
hashCode int
The hash code for this object.
id String?
Identifier for the media item.
read / write
mediaMetadata MediaMetadata?
Metadata related to the media item, such as, height, width, or creation time.
read / write
mimeType String?
MIME type of the media item.
read / write
productUrl String?
Google Photos URL for the media item.
read / write
runtimeType Type
A representation of the runtime type of the object.


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
toJson() Map<String, dynamic>
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.