@override Future<bool> connect(Printer device) async => await methodChannel.invokeMethod<bool>('connect', device.toJson()) ?? false;