@override Future<bool?> initPrinter() async { // Invoke the native method 'init' and return the result. final initPrinter = await methodChannel.invokeMethod<bool>('init'); return initPrinter; }