File class
Provides information about files and allows JavaScript in a web page to access their content.
- Implemented types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastModified → int
-
Returns the last modified time of the file, in millisecond since the
UNIX epoch (January 1st, 1970 at Midnight).
final
- name → String
-
Returns the name of the file referenced by the File object.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int
-
The size, in bytes, of the data contained in the Blob object.
no setteroverride
- type → String
-
A string indicating the MIME type of the data contained in the Blob.
If the type is unknown, this string is empty.
no setteroverride
- webkitRelativePath → String
-
Returns the path the URL of the File is relative to.
no setter
Methods
-
arrayBuffer(
) → Future< ArrayBuffer> -
Returns a promise that resolves with an ArrayBuffer containing the entire
contents of the Blob as binary data.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
slice(
[int? start, int? end, String? contentType]) → Blob -
Returns a new Blob object containing the data in the specified range of bytes of the blob on which it's called.
override
-
stream(
) → Stream< Uint8List> -
Returns a Stream that can be used to read the contents of the Blob.
override
-
text(
) → Future< String> -
Returns a promise that resolves with a string containing the entire
contents of the Blob interpreted as UTF-8 text.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited