File class
Provides information about files and allows JavaScript in a web page to access their content.
- Implemented types
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
-
File(List<
Object> fileBits, String fileName, [FilePropertyBag? options]) -
factory
Properties
-
arrayBuffer
↔ Future<
ByteBuffer> Function() -
Available on Blob, provided by the Blob$Typings extension
getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- lastModified → num
-
Available on File, provided by the File$Typings extension
MDN Referenceno setter - name → String
-
Available on File, provided by the File$Typings extension
MDN Referenceno setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → num
-
Available on Blob, provided by the Blob$Typings extension
MDN Referenceno setter - slice ↔ Blob Function([num?, num?, String?])
-
Available on Blob, provided by the Blob$Typings extension
getter/setter pair -
stream
↔ ReadableStream<
Uint8List> Function() -
Available on Blob, provided by the Blob$Typings extension
getter/setter pair -
text
↔ Future<
String> Function() -
Available on Blob, provided by the Blob$Typings extension
getter/setter pair - type → String
-
Available on Blob, provided by the Blob$Typings extension
MDN Referenceno setter - webkitRelativePath → String
-
Available on File, provided by the File$Typings extension
MDN Referenceno setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited