ScanKitException class sealed
Base exception for all ScanKit errors
Use pattern matching on the sealed class to handle specific error types:
try {
await ScanKit.scan();
} on CameraPermissionDeniedException {
// Request permission
} on ScanKitException catch (e) {
// Handle other errors
}
Constructors
- ScanKitException.fromPlatformException(PlatformException e)
-
Creates appropriate exception from platform error code
factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited