print method
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;
}