print method

  1. @override
Future<bool> print(
  1. List<PrintCommand> commands
)
override

Print text or commands

Implementation

@override
Future<bool> print(List<PrintCommand> commands) async {
  final result = await methodChannel.invokeMethod<bool>('print', {
    'commands': commands.map((cmd) => cmd.toMap()).toList(),
  });
  return result ?? false;
}