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