PrismPickerConstraints class
Validation for picked files: extensions and per-file size.
Constructors
-
PrismPickerConstraints({List<
String> ? allowedExtensions, int? maxSizeBytes, int? maxFiles}) -
Creates constraints. Null bounds mean unlimited.
const
Properties
-
allowedExtensions
→ List<
String> ? -
When non-empty, lower-cased extensions must be in this list.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxFiles → int?
-
Rejects batches larger than this.
final
- maxSizeBytes → int?
-
Rejects files larger than this.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
List< PrismPickedFile> files) → String? -
Returns a human-readable reason when
filesviolate the constraints, or null when they are all acceptable.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited