PerformanceHudStorage class abstract
Where PerformanceHudController keeps its state between launches.
SharedPreferencesHudStorage is the default. Implement this to store the state somewhere else, or to keep it in memory during a test.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
load(
) → Future< bool> - Opens the underlying store. Returning false means nothing can be read or written, and the controller keeps its defaults.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readBool(
String key) → bool? - Reads a stored boolean, or null when the key was never written.
-
readDouble(
String key) → double? - Reads a stored double, or null when the key was never written.
-
remove(
String key) → void - Removes a key.
-
toString(
) → String -
A string representation of this object.
inherited
-
writeBool(
String key, bool value) → void - Stores a boolean.
-
writeDouble(
String key, double value) → void - Stores a double.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited