FileUploadOptions class
Defines the options available that can be set during file upload
- Inheritance
-
- Object
- DbOperationOptions<
FileUploadOptions> - FileUploadOptions
Constructors
-
FileUploadOptions({String? contentType, bool? createBucket, bool? isPublic, OnUploadProgress? onProgress, List<
String> ? tags}) -
const
Properties
- contentType → String?
-
The
Content-Type
header value. This value needs to be specified if using afileBody
that is neitherBlob
norFile
norFormData
, otherwise will default totext/plain;charset=UTF-8
.final - createBucket → bool?
-
Specifies whether to create the bucket while uploading the file. If a
bucket with the provided name does not exists and if
createBucket
is marked as true then creates a new bucket. Defaults to false.final - hashCode → int
-
The hash code for this object.
no setterinherited
- isPublic → bool?
-
Specifies whether file is publicy accessible or not. Defaults to the
bucket's privacy setting if not specified.
final
- onProgress → OnUploadProgress?
-
Callback function to call during file upload.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
Array of string values that will be added to the file metadata.
final
Methods
-
merge(
FileUploadOptions? other) → FileUploadOptions -
Merge Options.
this is default,
other
is user defined.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Convert to JsonMap
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited