getSupplyName method

  1. @override
Future<String?> getSupplyName()
override

getSupplyName() returns a String representing the supply installed in the connected printer.

Implementation

@override
Future<String?> getSupplyName() async {
  String? supplyName = await methodChannel.invokeMethod<String>(
    'getSupplyName',
  );
  return supplyName;
}