getOutOfInkCmy method
getOutOfInkCmy() returns a boolean representing if the printer is out of CMY ink.
Implementation
@override
Future<bool?> getOutOfInkCmy() async {
try {
bool? outOfInkCmy = await methodChannel.invokeMethod<bool>(
'getOutOfInkCmy',
);
return outOfInkCmy;
} on PlatformException catch (e) {
if (e.message?.contains('dataCorrupted') == true) {
return false;
}
rethrow;
}
}