ElginSize class

Enumeração dos tamanhos de texto disponíveis para impressão.

Utilize estas constantes para definir o tamanho do texto na impressão. Também é possível criar um tamanho personalizado usando o método customFont.

Exemplo de uso:

await Elgin.printer.printString(
  "Texto grande",
  fontSize: ElginSize.LG,
);

// Para tamanho personalizado:
final custom = ElginSize.customFont(fontSize: 32);
await Elgin.printer.printString(
  "Texto personalizado",
  fontSize: custom,
);

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
Valor inteiro utilizado pelo protocolo da impressora para o tamanho do texto.
final

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

customFont({required int fontSize}) ElginSize
Cria um tamanho de fonte personalizado.

Constants

LG → const ElginSize
Tamanho grande.
MD → const ElginSize
Tamanho médio padrão (default).
XL → const ElginSize
Tamanho extra grande.