watch<VM extends PulseXStreamViewModel> static method

VM? watch<VM extends PulseXStreamViewModel>(
  1. BuildContext context
)

Implementation

static VM? watch<VM extends PulseXStreamViewModel>(BuildContext context) {
  return context
      .dependOnInheritedWidgetOfExactType<PulseXStreamStateManager<VM>>()
      ?.viewModel;
}