PrinterHardwareStatus class

Hardware status of the connected printer, as reported by the SDK.

This is the physical printer state (errors and detected media), distinct from PrinterStatus which tracks the connection state. Use BrotherNativePrint.getPrinterStatus() to query it on demand, e.g. to diagnose why a print fails (label size mismatch, printer in an unexpected mode, out of paper...).

Constructors

PrinterHardwareStatus({required bool isOk, String? errorCode, int mediaWidthMm = 0, int mediaHeightMm = 0, bool isHeightInfinite = false, String? detectedPaperType})
const
PrinterHardwareStatus.fromMap(Map map)
factory

Properties

detectedPaperType String?
Exact QL label size detected by the printer (e.g. RollW62, RollW62RB, DieCutW62H100), or null when unknown or the printer is not a QL model.
final
errorCode String?
Normalized error code (outOfPaper, coverOpen, paperJam, busy, ...) or null when isOk is true.
final
hashCode int
The hash code for this object.
no setterinherited
isHeightInfinite bool
True when the media is a continuous roll (infinite height, e.g. RJ or a QL roll label).
final
isOk bool
True when the SDK reports no printer error.
final
mediaHeightMm int
Detected media height in mm, 0 for continuous rolls or when unknown.
final
mediaWidthMm int
Detected media (label/roll) width in mm, 0 when unknown.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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