getSupplyRemainingPercentage method

  1. @override
Future<int?> getSupplyRemainingPercentage()
override

getSupplyRemainingPercentage() returns a String representing the percentage of supply remaining in the connected printer

Implementation

@override
Future<int?> getSupplyRemainingPercentage() async {
  int? supplyRemainingPercentage =
      await methodChannel.invokeMethod<int>('getSupplyRemainingPercentage');
  return supplyRemainingPercentage;
}