isVINRestrictionsEnabled property
Checks if VIN restrictions are enabled.
Returns a Future that completes with a boolean indicating whether VIN restrictions are enabled.
Example usage:
bool isEnabled = await _barkoder.isVINRestrictionsEnabled;
print('VIN restrictions enabled: $isEnabled');
Implementation
Future<bool> get isVINRestrictionsEnabled async {
if (_isBarkoderViewNotMounted) {
return Future.error(PlatformException(
code: BarkoderErrors.barkoderViewNotMounted,
message: BarkoderErrors.barkodeViewNotMountedDesc));
}
return await _methodChannel.invokeMethod('isVINRestrictionsEnabled');
}