PrinterInfo class

Printer information model

Constructors

PrinterInfo({required String model, required String serialNumber, required String firmware, required PrinterLanguage language, String? rawInfo})
PrinterInfo.fromMap(Map map)
Creates PrinterInfo from Map (for future use if Android returns Map)
factory
PrinterInfo.fromString(String info)
Creates PrinterInfo from raw string response Parses the string format returned from Android: "Model: ZD421\nSeri No: XXXX\nFirmware: V84.20.11Z\nDil: ZPL\n"
factory

Properties

firmware String
Printer firmware version
final
hashCode int
The hash code for this object.
no setterinherited
language PrinterLanguage
Printer language (ZPL/CPCL)
final
model String
Printer model name
final
rawInfo String?
Raw info string (for debugging)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serialNumber String
Printer serial number
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toCompactString() String
Returns compact string representation
toJson() Map<String, String>
Returns JSON-like Map for debugging
toMap() Map<String, dynamic>
Converts to Map
toString() String
Returns string representation
override

Operators

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