print method

Future<void> print({
  1. int feedLines = 4,
})

Prints the current buffer and feeds the paper by the specified number of lines. The method communicates with the printer through a method channel.

  • Parameters:

    • feedLines: The number of lines to feed the paper. Defaults to 4.
  • Returns: A Future that completes when the command has been sent.

Implementation

Future<void> print({int feedLines = 4}) async {
  await methodChannel.invokeMethod<void>('print', {"feedLines": feedLines});
}