getVersion method

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

Retrieves the version of the printer.

Returns an int representing the version, or null if the operation fails.

Implementation

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