File class

Browser counterpart used by path APIs after assets are registered explicitly.

Constructors

File(String path)
File.fromUri(Uri uri)

Properties

hashCode → int
The hash code for this object.
no setterinherited
path → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

exists() → Future<bool>
existsSync() → bool
length() → Future<int>
lengthSync() → int
Size in bytes of the registered asset.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openWrite({Encoding encoding = utf8}) → IOSink
readAsBytes() → Future<Uint8List>
readAsBytesSync() → Uint8List
toString() → String
A string representation of this object.
inherited
writeAsBytes(List<int> bytes, {bool flush = false}) → Future<File>
writeAsBytesSync(List<int> bytes, {bool flush = false}) → void

Operators

operator ==(Object other) → bool
The equality operator.
inherited