RawPFile class

Web cannot write files, so this acts as an in-memory representation

Inheritance
Available extensions

Constructors

RawPFile.ofBytes(String? name, Uint8List bytes)
RawPFile.ofFile(String? path, PFileToByteStream _readStreamFactory, int? _size, {SafeCompleter? completer})
This constructor is more low-level because we can't pull in any file dependencies into this code
RawPFile.ofSingleStream(String name, Stream<List<int>> data, {int? size})
factory
RawPFile.ofStream(String? name, PFileToByteStream _readStreamFactory, int? _size)

Properties

awaitData → Future<Uint8List>

Available on PFile, provided by the PlatformFileWriteExt extension

no setter
awaitData → Future<Uint8List>

Available on RawPFile, provided by the RawPFileWriteExt extension

no setter
bytes → Uint8List
Try not to use this
no setteroverride
dataStream → Stream<List<int>>

Available on RawPFile, provided by the RawPFileWriteExt extension

no setter
extension → String?
File extension for this file.
no setteroverride
extension → String?

Available on PFile, provided by the PlatformFileWriteExt extension

no setter
extension → String?

Available on RawPFile, provided by the RawPFileWriteExt extension

no setter
file → dynamic
no setteroverride
hasBeenRead → bool
no setter
hashCode → int
The hash code for this object.
no setterinherited
name → String?
File name including its extension.
final
path → String?
The absolute path for a cached copy of this file. It can be used to create a file instance with a descriptor for the given path.
final
read → Future<PFile>
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → int
no setteroverride

Methods

markRead(Uint8List data) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openStream([int? start, int? end]) → Stream<List<int>>
override
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

defaultChunkSize ↔ int
getter/setter pair
log → Logger
final