PickedFile class Null safety

A PickedFile is a cross-platform, simplified File abstraction.

It wraps the bytes of a selected file, and its (platform-dependant) path.

Constructors

PickedFile(String path)
Construct a PickedFile object, from its bytes. [...]

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
path String
Get the path of the picked file. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
openRead([int? start, int? end]) Stream<Uint8List>
Create a new independent Stream for the contents of this file. [...]
inherited
readAsBytes() Future<Uint8List>
Synchronously read the entire file contents as a list of bytes. [...]
inherited
readAsString({Encoding encoding = utf8}) Future<String>
Synchronously read the entire file contents as a string using the given Encoding. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited