FileStorage class final
Documents kept as files, one per name, in a directory this platform owns.
Constructors
- FileStorage({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?
-
Resolved on first use rather than in the constructor.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- onIssue → IssueSink
-
Where this says what the platform would not let it do.
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< String?> -
The document called
name, or null if there is not one.override -
remove(
String name) → Future< void> -
Forgets
name, if it is there. Never throws.override -
toString(
) → String -
A string representation of this object.
inherited
-
write(
String name, String contents) → Future< void> -
Writes
contentsundername.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited