File class
Browser counterpart used by path APIs after assets are registered explicitly.
Constructors
- File(String path)
- File.fromUri(Uri uri)
Properties
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