TFieldProp<T> class

A reactive property for form fields with subscription support.

TFieldProp provides reactive state management for form fields with:

  • Value change notifications
  • Subscription to other properties
  • User input tracking
  • Reset to initial value
  • Automatic disposal

Type parameter:

  • T: The type of the property value

See also:

Constructors

TFieldProp(T value, {bool useNotifier = false, ValueChanged<T?>? onValueChanged})

Properties

hashCode int
The hash code for this object.
no setterinherited
initialValue → T?
The initial value of the property.
final
onValueChanged ValueChanged<T?>?
Callback fired when the value changes.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value ↔ T
getter/setter pair
valueNotifier ValueNotifier<T?>?
no setter
wasUserInput bool
no setter

Methods

dispose() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
subscribe<V>(TFieldProp<V> source, T formatter(V val), {bool cancelOnUserEdit = false}) → void
subscribeToMany(List<TFieldProp> sources, T setter(), {bool cancelOnUserEdit = false}) → void
toString() String
A string representation of this object.
override
unsubscribe(TFieldProp<T> source) → void

Operators

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