watch static method

IndexModel? watch(
  1. BuildContext context
)

call rebuild

Implementation

static IndexModel? watch(BuildContext context) {
  return context
      .dependOnInheritedWidgetOfExactType<IndexNotifierProvider>()
      ?.model;
}