ArcaneFieldProvider<T> class
abstract
The abstract base class for form field providers in the Arcane form system.
This class defines the interface for getting and setting form values, enabling dynamic validation and custom storage backends. Subclasses like ArcaneFieldMapProvider and ArcaneFieldDirectProvider implement the abstract onGetValue and onSetValue for specific persistence needs.
- Implementers
Constructors
- ArcaneFieldProvider({required T defaultValue})
Properties
- currentValue → T
-
Current value or default.
no setter
- defaultValue → T
-
The default value used as a fallback when value retrieval fails.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stream
→ Stream<
T> -
Stream of value changes.
no setter
Methods
-
dispose(
) → void - Dispose resources.
-
getValue(
String k) → Future< T> - Retrieves the value for the given key, falling back to defaultValue on error.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onGetValue(
String k) → Future< T> - Abstract method to retrieve the value associated with a key.
-
onSetValue(
String k, T value) → Future< void> - Abstract method to set the value for a key.
-
setValue(
String k, T value) → Future< void> - Sets the value for the given key and emits the new value.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited