Medium class

A medium in the gallery.

It can be of image or video mediumType.

Annotations

Constructors

Medium.fromJson(dynamic json)
Creates a medium from platform channel protocol.

Properties

creationDate DateTime?
The date at which the photo or video was taken.
final
duration int
The duration of video
final
filename String?
The medium filename.
final
hashCode int
The hash code for this object.
no setteroverride
height int?
The medium height.
final
id String
A unique identifier for the medium.
final
mediumType MediumType?
The medium type.
final
mimeType String?
The medium mimeType.
final
modifiedDate DateTime?
The date at which the photo or video was modified.
final
orientation int?
The medium orientation.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int?
The medium size.
final
title String?
The medium title
final
width int?
The medium width.
final

Methods

getFile() Future<File>
Get the original file.
getThumbnail({int? width, int? height, bool? highQuality = false}) Future<List<int>>
Get a JPEG thumbnail's data for this medium.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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