PickedFile class
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
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent 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