AttachmentConfig class
Global configuration object for the PixelToPdf attachment picker.
Constructors
-
AttachmentConfig({required List<
AttachmentFeature> features, AttachmentUIStyle uiStyle = AttachmentUIStyle.bottomSheet, bool enableCropping = true, bool allowMultipleGallery = true, AttachmentTheme theme = AttachmentTheme.dark, int maxScanPages = 20, int maxImageCount = 0, int maxFileCount = 0}) -
Creates a new AttachmentConfig.
const
Properties
- allowMultipleGallery → bool
-
Whether to allow multi-selection when picking from the gallery.
final
- enableCropping → bool
-
Whether to enable the cropping step after taking a photo or picking an image.
final
-
features
→ List<
AttachmentFeature> -
The list of enabled features (e.g., AttachmentFeature.scanDoc).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxFileCount → int
-
The maximum number of files allowed to be selected from the file picker.
Set to 0 for unlimited selection.
final
- maxImageCount → int
-
The maximum number of images allowed to be selected from the gallery.
Set to 0 for unlimited selection.
final
- maxScanPages → int
-
The maximum number of pages allowed in a single document scan session.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- theme → AttachmentTheme
-
The theme configuration for the UI.
final
- uiStyle → AttachmentUIStyle
-
Whether to show the picker as a bottom sheet or a dialog.
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