FileContentSource class final
Upload source backed by a file.
- Implemented types
Constructors
- FileContentSource(File file, {String? name, String? contentType})
-
Creates a source for
file;namedefaults to the file name.
Properties
- contentType → String?
-
Media type, when known.
final
- file → File
-
The file.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- length → int
-
Total length in bytes.
final
- name → String
-
File name sent in the upload metadata.
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
-
openRead(
[int? start, int? end]) → Stream< List< int> > -
The bytes in
[start, end).override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited