FormDeps class

Orchestrates side-effects triggered by form control changes.

Typical usage:

final deps = FormDeps(form);
deps.when(['a', 'b']).run(() {
  // do something when a or b changes
});

Call dispose to detach listeners and avoid leaks.

Constructors

FormDeps(FormGroup form)

Properties

form FormGroup
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Detaches all listeners registered through this instance.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when(Iterable<String> fieldNames) DepSubscription
Creates a subscription builder for one or more control names.

Operators

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