FieldModel<TSource, TValue> class
- Inheritance
-
- Object
- WidgetModel<
BaseFieldEvent< TSource, TValue> > - FieldModel
Constructors
-
FieldModel({required TValue initialValue, Iterable<
BaseRule> rules = const []})
Properties
-
changes
→ Stream<
BaseFieldEvent< TSource, TValue> > -
no setterinherited
-
errors
↔ Iterable<
String> -
getter/setter pair
-
eventSubject
→ BehaviorSubject<
BaseFieldEvent< TSource, TValue> > -
finalinherited
- hashCode → int
-
The hash code for this object.
no setteroverride
-
rules
→ Iterable<
BaseRule> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceValue → TSource
-
no setter
- valid → bool
-
no setter
- value → TValue
-
no setter
Methods
-
dispose(
) → void -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
post(
{TSource? value}) → void -
raiseEvent(
BaseFieldEvent< TSource, TValue> event) → void -
inherited
-
setExternaValue(
TValue value) → void -
setValue(
TSource value, {FieldChangeSource source = FieldChangeSource.entryChange}) → void -
toString(
) → String -
A string representation of this object.
inherited
-
validate(
[TValue? value]) → Iterable< String> -
validator(
dynamic value, {ITranslator? translator}) → String?
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override