printLabel method

  1. @override
Future<bool> printLabel(
  1. String ipAddress,
  2. String label
)
override

Implementation

@override
Future<bool> printLabel(String ipAddress, String label) async {
  try {
    return await methodChannel
        .invokeMethod("printLabel", {"printerId": ipAddress, "label": label});
  } catch (e) {
    print("There is an issue while printing the Label $e");
    return false;
  }
}