LocalAlbum class

A single album of images on the device.

Each album has an id which uniquely identifies it on the local device.

Annotations
  • @JsonSerializable(explicitToJson: true)

Constructors

LocalAlbum(String? id, LocalImage? coverImg, String? title, int? imageCount, int? videoCount, int? transferType)
const
LocalAlbum.fromJson(Map<String, dynamic> json)
factory

Properties

albumType LocalAlbumType
no setter
coverImg LocalImage?
An image that can be used as a cover for the album.
final
hashCode int
The hash code for this object.
no setteroverride
id String?
A unique identifier for the album on the device
final
imageCount int?
The number of images contained in the album
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String?
A descriptive title for the album
final
transferType int?
final
videoCount int?
The number of videos contained in the album
final

Methods

getCoverImage(LocalImageProvider localImageProvider, int pixelHeight, int pixelWidth, {int? compression}) Future<Uint8List>
Returns a jpeg of the cover image for the album that can be loaded into a MemoryImage.
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.
override

Operators

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

Constants

albumTransferType → const int