RxTextFormFieldBuilder<B extends RxBlocTypeBase> constructor

RxTextFormFieldBuilder<B extends RxBlocTypeBase>({
  1. required RxFormFieldState<B, String> state,
  2. required RxFormFieldShowError<B> showErrorState,
  3. required RxTextFormFieldBuilderFunction<B> builder,
  4. required RxFormFieldOnChanged<B, String> onChanged,
  5. RxInputDecorationData decorationData = const RxInputDecorationData(),
  6. TextEditingController? controller,
  7. bool obscureText = false,
  8. RxTextFormFieldCursorBehaviour cursorBehaviour = RxTextFormFieldCursorBehaviour.start,
  9. B? bloc,
  10. Key? key,
})

The default constructor

Implementation

RxTextFormFieldBuilder({
  required RxFormFieldState<B, String> state,
  required RxFormFieldShowError<B> showErrorState,
  required RxTextFormFieldBuilderFunction<B> builder,
  required this.onChanged,
  this.decorationData = const RxInputDecorationData(),
  this.controller,
  this.obscureText = false,
  this.cursorBehaviour = RxTextFormFieldCursorBehaviour.start,
  B? bloc,
  Key? key,
})  : textFormBuilder = builder,
      super(
        key: key,
        state: state,
        showErrorState: showErrorState,
        builder: (_) => Container(),
        bloc: bloc,
      );