ThermalPaperHelper class
Helper util untuk mapping ThermalPaper -> properties yang diperlukan
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Static Methods
-
charsPerLine(
ThermalPaper paper) → int - jumlah karakter per baris (estimasi) untuk mode normal (size normal) common defaults: 58mm ~ 32 chars, 80mm ~ 48 chars
-
displayName(
ThermalPaper paper) → String - pretty name tampil di UI
-
maxImageWidthPx(
ThermalPaper paper) → int - perkiraan max pixel width untuk gambar/logo (untuk resize sebelum gen.image) nilai konservatif yang umum dipakai (203 DPI)
-
paperSize(
ThermalPaper paper) → PaperSize - mapping ke PaperSize yang dipakai oleh esc_pos_utils_plus
-
parseFromString(
String value) → ThermalPaper - parse dari string sederhana (mis. '58' atau '80' atau 'mm58' dsb)