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