PrintDensity enum

Quanto a cabeça térmica aquece a cada ponto.

Mais calor escurece o traço e melhora a leitura de texto pequeno e de códigos de barras, ao custo de imprimir um pouco mais devagar e de gastar mais a cabeça. O comando é o ESC 7 das térmicas ESC/POS.

Nem toda impressora o implementa. A que não implementa costuma ignorá-lo, mas há modelos que imprimem os parâmetros como texto — por isso o padrão é não mandar nada e manter o que vem de fábrica.

Inheritance
Available extensions

Values

normal → const PrintDensity

Padrão de fábrica da maioria das térmicas.

const PrintDensity(80)
dark → const PrintDensity

Um passo mais escuro. É o que costuma resolver texto miúdo apagado.

const PrintDensity(120)
darkest → const PrintDensity

O limite prático antes de o traço começar a borrar.

const PrintDensity(160)

Properties

hashCode → int
The hash code for this object.
no setterinherited
heatingTime → int
n2 do ESC 7, em unidades de 10µs.
final
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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

Constants

values → const List<PrintDensity>
A constant List of the values in this enum, in order of their declaration.