getBatteryInfo method
Retrieves the battery information of the printer.
Implementation
Future<BatteryInfo> getBatteryInfo() async {
var params = {
"printerId": mPrinterId,
"printInfo": mPrinterInfo.toMap(),
};
final Map resultMap = await _channel.invokeMethod("getBatteryInfo", params);
BatteryInfo info = BatteryInfo.fromMap(resultMap);
return info;
}