MediaItem class

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

Constructors

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

Properties

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

Methods

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

Operators

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