read static method
without update
Implementation
static IndexModel? read(BuildContext context) {
final widget = context
.getElementForInheritedWidgetOfExactType<IndexNotifierProvider>()
?.widget;
return widget is IndexNotifierProvider ? widget.notifier : null;
}