PictureBlock class

FLAC PICTURE metadata block.

Stores an embedded image (typically album cover art).

Inheritance

Constructors

PictureBlock({required bool isLast, required int length, required int pictureType, required String mimeType, required String description, required int width, required int height, required int colorDepth, required int colorsUsed, required Uint8List pictureData})
const

Properties

blockType int
The block type identifier (see BlockType).
finalinherited
colorDepth int
Color depth (bits per pixel, 0 if unknown or not applicable).
final
colorsUsed int
Number of colors (0 for non-indexed images or unknown).
final
description String
UTF-8 description of the image.
final
hashCode int
The hash code for this object.
no setterinherited
height int
Image height in pixels (0 if unknown or not applicable).
final
isLast bool
Whether this is the last metadata block before the audio frames.
finalinherited
length int
The length of the block data in bytes (excluding the 4-byte header).
finalinherited
mimeType String
MIME type string (e.g. "image/jpeg", "image/png").
final
pictureData Uint8List
The raw image data.
final
pictureType int
Picture type (see PictureType).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
Image width in pixels (0 if unknown or not applicable).
final

Methods

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.
inherited

Static Methods

parse(bool isLast, int length, Uint8List data) PictureBlock
Parses a PictureBlock from its raw data bytes.