ConstraintsInput class final

Constraints fields accepted by the upload request API.

Carries minSize, maxSize, exactSize, and contentTypes, among other supported fields.

Constructors

ConstraintsInput({int? minSize, int? maxSize, int? exactSize, List<String>? contentTypes, List<String>? extensions, String? filename})
const
ConstraintsInput.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