BarcodeImage class final

A created barcode as an 8-bit grayscale raster (0 = black, 255 = white).

Annotations

Constructors

BarcodeImage({required int width, required int height, required Uint8List pixels})
Wraps a raster.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
height → int
Height in pixels.
final
pixels → Uint8List
One byte per pixel, row by row.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
width → int
Width in pixels.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toPng() → Future<Uint8List>
Encodes the image as PNG (with the Flutter engine's encoder).
toString() → String
A string representation of this object.
inherited
toUiImage() → Future<Image>
Converts the image for drawing with Canvas or RawImage. The caller owns the result and should dispose() it.

Operators

operator ==(Object other) → bool
The equality operator.
inherited