CroppedFileBase class abstract
The interface for a CroppedFile.
A CroppedFile is a container that wraps the path of a selected file by the user and (in some platforms, like web) the bytes with the contents of the file.
This class is a very limited subset of dart:io File, so all the methods should seem familiar.
- Implementers
- Annotations
Constructors
- CroppedFileBase(String path)
-
Construct a CroppedFile
const
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.
-
readAsBytes(
) → Future< Uint8List> - Synchronously read the entire file contents as a list of bytes.
-
readAsString(
{Encoding encoding = utf8}) → Future< String> - Synchronously read the entire file contents as a string using the given Encoding.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited