ThumbnailOption class

The options used when requesting thumbnails.

Annotations

Constructors

ThumbnailOption({required ThumbnailSize size, ThumbnailFormat format = ThumbnailFormat.jpeg, int quality = PMConstants.vDefaultThumbnailQuality, int frame = 0})
Creates a new ThumbnailOption object with the given parameters.
const
ThumbnailOption.ios({required ThumbnailSize size, ThumbnailFormat format = ThumbnailFormat.jpeg, int quality = PMConstants.vDefaultThumbnailQuality, DeliveryMode deliveryMode = DeliveryMode.opportunistic, ResizeMode resizeMode = ResizeMode.fast, ResizeContentMode resizeContentMode = ResizeContentMode.fit})
Constructs thumbnail options for iOS/macOS only.
factory

Properties

format ThumbnailFormat
The format of the thumbnail.
final
frame int
The frame number when loading a thumbnail for videos.
final
hashCode int
The hash code for this object.
no setteroverride
quality int
The quality value for the thumbnail.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size ThumbnailSize
The size of the thumbnail.
final

Methods

checkAssertions() → void
Checks that the assertions for this object are valid.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts this object to a map.
toString() String
A string representation of this object.
inherited

Operators

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