Setting<T, U> class

Annotations
  • @sealed

Constructors

Setting(Box box, String key, {required T defaultValue, required U store(T), required T load(U)})

Properties

context → ReactiveContext
Override this method to use a custom context.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
key String
finalinherited
load → T Function(U)
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
store → U Function(T)
finalinherited
stream Stream<BoxEvent>
finalinherited
value ↔ T
getter/setter pairinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setValue(T newValue) Future<void>
inherited
toString() String
A string representation of this object.
override

Operators

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

Static Methods

boolValue(Box box, String key, {required bool defaultValue}) Setting<bool, bool>
enumValue<T>(Box box, String key, {required List<T> values, required T defaultValue}) Setting<T, int>
intValue(Box box, String key, {required int defaultValue}) Setting<int, int>
simple<T>(Box box, String key, {required T defaultValue}) Setting<T, T>
stringValue(Box box, String key, {required String defaultValue}) Setting<String, String>