bloc property

B get bloc

The bloc field gives you access to the RxBloc from which the field state is derived, it should be mostly used in order to fire off events towards the bloc, in response to user interaction with the form field.

The returned bloc is either the bloc passed to the constructor of the widget, or if one isn't provided RxFormFieldBuilder automatically searches for and uses the closest instance up the widget tree of RxBloc of type B.

Implementation

B get bloc => _bloc;