getVersion property
Retrieves the version of the Barkoder library.
Returns a Future that completes with a String representing the version of the Barkoder library.
Example usage:
String version = await _barkoder.getVersion;
print('Barkoder library version: $version');
Implementation
Future<String> get getVersion async {
if (_isBarkoderViewNotMounted) {
return Future.error(PlatformException(
code: BarkoderErrors.barkoderViewNotMounted,
message: BarkoderErrors.barkodeViewNotMountedDesc));
}
return await _methodChannel.invokeMethod('getVersion');
}