TwoWayBinding<T> class
A controller to perform 2 way binding between the field and the GUI element.
Constructors
- TwoWayBinding({T? seeded})
Properties
- change → void Function(T?)
-
Function to perform the change of the data.
no setter
- 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?> -
Transform this two way binding in stream.
no setter
- textController → TextEditingController
-
A controller for an editable text field.
final
- value ↔ T?
-
Returns the current value.
getter/setter pair
Methods
-
bindDataRule(
DataRule< T, T> rule) → TwoWayBinding<T> - Add a new data rule.
-
bindDataRule2<
S> (TwoWayBinding< S> second, DataRule<Tuple2< rule) → TwoWayBinding<T?, S?> , T>T> - Add a new data rule, combined with another TwoWayBinding.
-
close(
) → Future< void> - Closes the two way binding.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onChange(
void callback(T? changed)) → TwoWayBinding< T> - Add a change callback to perform some editing on other fields.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited