calibratePrinter method

  1. @override
Future<bool> calibratePrinter(
  1. String ipAddress,
  2. String command
)
override

Implementation

@override
Future<bool> calibratePrinter(String ipAddress, String command) async {
  try {
    return await methodChannel.invokeMethod(
        "calibrate_printer", {"printerId": ipAddress, "command": command});
  } catch (e) {
    print("There is an issue while calibrating the printer $e");
    return false;
  }
}