FileBinaryStorage class final

Documents kept as files, the binary half of FileStorage.

Same directory, same atomic-write discipline — writeBytesAtomicallySync rather than writeFileAtomicallySync — different bytes.

Implemented types

Constructors

FileBinaryStorage({required String appName, Directory? directory, IssueSink? onIssue})

Properties

appName → String
final
directory → Directory?
latefinal
hashCode → int
The hash code for this object.
no setterinherited
onIssue → IssueSink
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(String name) → Future<Uint8List?>
The document called name, or null if there is not one.
override
remove(String name) → Future<void>
Forgets name, if it is there.
override
toString() → String
A string representation of this object.
inherited
write(String name, Uint8List contents) → Future<bool>
Writes contents, and says whether it managed to. Never throws, for the same reason Storage.write does not.
override

Operators

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