listenTo property

InjectedFormField<T> listenTo
final

InjectedFormField to listen to.

Example:

 final myCheckBox = RM.injectFormField<bool>(
   false,
   validators: [(value) => !value ? 'You must check me' : null],
 );

If the InjectedFormField state is nullable and it is set to null, the InputDecoration.hintText is displayed when the field isFocused and the InputDecoration.labelText is displayed when unfocuced.

Implementation

final InjectedFormField<T> listenTo;