PrinterStatus class
Constructors
- PrinterStatus({bool isConnected = false, bool isPaperOut = false, bool isPaused = false, bool isHeadOpen = false, String temperature = '0', String? errorMessage})
- PrinterStatus constructor
- PrinterStatus.fromMap(Map map)
-
Creates PrinterStatus from Map
factory
- PrinterStatus.withEnums({required PrinterConnectionState connectionState, required PaperState paperState, required PauseState pauseState, required HeadState headState, String temperature = '0', String? errorMessage})
- Constructor with direct enum values
Properties
- connectionState → PrinterConnectionState
-
Printer connection state
final
- errorMessage → String?
-
Error message (if any)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headState → HeadState
-
Printer head state
final
- isConnected → bool
-
Getters for backward compatibility
no setter
- isHeadOpen → bool
-
no setter
- isPaperOut → bool
-
no setter
- isPaused → bool
-
no setter
- paperState → PaperState
-
Paper state
final
- pauseState → PauseState
-
Printer pause state
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- temperature → String
-
Printer head temperature
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Converts to Map
-
toString(
) → String -
Returns string representation
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited