Constraints class final

The size, content-type, extension, and filename constraints for an upload.

Exposes minSize, maxSize, exactSize, and contentTypes, among other contract fields.

Constructors

Constraints({int? minSize, int? maxSize, int? exactSize, List<String>? contentTypes, List<String>? extensions, String? filename})
const
Constraints.fromJson(Map<String, Object?> json)
factory

Properties

contentTypes → List<String>?
final
exactSize → int?
final
extensions → List<String>?
final
filename → String?
final
hashCode → int
The hash code for this object.
no setterinherited
maxSize → int?
final
minSize → int?
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
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited