obx method

Widget obx(
  1. NotifierBuilder<T> widget
)

obx is a extension on BaseController handles building a widget in response to new states.

This is analogous to the builder function in ObserverWidget.

Implementation

Widget obx(NotifierBuilder<T> widget) => Obx(() => widget(rxState.value));