Picture class
An object representing a picture metadata.
- Available extensions
Constructors
- Picture({required PictureType pictureType, MimeType? mimeType, required Uint8List bytes})
-
const
Properties
- bytes → Uint8List
-
The picture data, in bytes.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- mimeType → MimeType?
-
The mime type of the picture (ex.
image/jpg)final - pictureType → PictureType
-
The type of picture (ex. front cover)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{PictureType? pictureType, MimeType? mimeType, Uint8List? bytes}) → Picture -
Available on Picture, provided by the PictureCopyWith extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
newInstance(
{required PictureType pictureType, MimeType? mimeType, required List< int> bytes}) → Future<Picture>