CardScanConfig class
Properties and callbacks set to CardScanner
Constructors
- CardScanConfig({required String sessionToken, required ScanSuccessCallback? onSuccess, LogLevel logging = LogLevel.normal, bool live = false, VoidCallback? onCancel, ErrorCallback? onError, bool backsideSupport = false, VoidCallback? onRetry, CardScanMessages? messages, TextStyle? messageStyle, Color? autoSwitchActiveColor, Color? autoSwitchInactiveColor, Color? progressBarColor, Color? widgetBackgroundColor, VoidCallback? onWebViewLoadError})
-
const
Properties
- autoSwitchActiveColor → Color?
-
Enabled color for the auto scan switch.
final
- autoSwitchInactiveColor → Color?
-
Disabled color for the auto scan switch.
final
- backsideSupport → bool
-
Enable scanning of the front and back side of the card.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- live → bool
-
Flag for current environment of the card scanner.
final
- logging → LogLevel
-
Flag for choosing the level of detail for logs,
choose between off, normal, verbose, detector or everything.
final
- messages → CardScanMessages?
-
Custom texts for giving visual feedback inside CardScanner UI.
final
- messageStyle → TextStyle?
-
Adjust text properties to the message prompted by the UI.
final
- onCancel → VoidCallback?
-
Callback triggered when user cancels/closes the CardScanner UI.
final
- onError → ErrorCallback?
-
Callback triggered on potential errors. Errors happend when calling the
API or when CardScanner fails to initialize.
final
- onRetry → VoidCallback?
-
Callback triggered when a scan fails.
final
- onSuccess → ScanSuccessCallback?
-
Callback on successful card scanning. Returns a ScannedCard object when
triggered.
final
- onWebViewLoadError → VoidCallback?
-
final
- progressBarColor → Color?
-
Color for the progress bar and bounding box surrounding the card scan area.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sessionToken → String
-
JWT used for authenticating users during CardScanner API requests.
final
- widgetBackgroundColor → Color?
-
Main background color for the widget.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited