ElginQrcodeSize class

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

Use estas constantes para definir o tamanho do QR Code ao imprimir em uma impressora Elgin. O valor deve variar de 1 (menor) a 6 (maior), sendo que tamanhos maiores facilitam a leitura em distâncias maiores.

Exemplo de uso:

await Elgin.printer.printQRCode(
  "https://exemplo.com",
  size: ElginQrcodeSize.SIZE4,
);

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.
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

Constants

SIZE1 → const ElginQrcodeSize
Tamanho 1 (menor QR Code).
SIZE2 → const ElginQrcodeSize
Tamanho 2.
SIZE3 → const ElginQrcodeSize
Tamanho 3.
SIZE4 → const ElginQrcodeSize
Tamanho 4 (recomendado para uso geral).
SIZE5 → const ElginQrcodeSize
Tamanho 5.
SIZE6 → const ElginQrcodeSize
Tamanho 6 (maior QR Code possível).