Setting class
A class for working with application settings.
Constructors
- Setting()
-
factory
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
delete(
dynamic keys, {dynamic lazy = false}) → Future< void> - Deletes a setting with the specified key or keys.
-
deleteExpired(
{bool lazy = false}) → Future< void> - Delete all expired settings.
-
get(
String key, {dynamic defaultValue, bool cache = true}) → Future - Gets the value of a setting with the specified key.
-
set(
String key, dynamic value, {DateTime? expires, bool lazy = false}) → Future< void> - Sets a value for a setting with the specified key.