FileBundleFileStore class

BundleFileStore over a .mbd/ directory on the local filesystem.

This is what desktop and mobile hosts get, and it is the behaviour every existing consumer already has — the port was introduced under them, not instead of them.

Implemented types

Constructors

FileBundleFileStore(String bundleRoot)
Bind to the .mbd/ directory at bundleRoot.

Properties

bundleRoot String
Absolute path of the bundle's .mbd/ directory.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete(String path) Future<void>
Delete path. No-op when it does not exist.
override
exists(String path) Future<bool>
Whether path exists.
override
list({String? folder}) Future<List<String>>
Enumerate paths under folder (bundle-root relative, sorted).
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(String path) Future<Uint8List?>
Read path, or null when it does not exist.
override
toString() String
A string representation of this object.
inherited
write(String path, Uint8List bytes) Future<void>
Write bytes at path, creating intermediate structure as needed.
override

Operators

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