FileBinaryStorage class final
Documents kept as files, the binary half of FileStorage.
Same directory, same atomic-write discipline — writeBytesAtomicallySync rather than writeFileAtomicallySync — different bytes.
- Inheritance
-
- Object
- BinaryStorage
- FileBinaryStorage
Constructors
- FileBinaryStorage({required String appName, Directory? directory, IssueSink? onIssue})
-
A store in the directory given, or in
appName's application folder when none is; issues are printed unlessonIssuetakes them.
Properties
- appName → String
-
The game's name, which its application folder is named after when no
directory was given.
final
- directory → Directory?
-
Where the documents are kept, resolved on first use; null on a
platform with no folder to keep them in.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- onIssue → IssueSink
-
Where this says what the platform would not let it do, such as having
no application folder.
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< void> -
Writes
contentsundername.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited