model<M extends Model<M>, T extends StateProvider<M>> static method

M model<M extends Model<M>, T extends StateProvider<M>>(
  1. BuildContext context
)

Implementation

static M model<M extends Model<M>, T extends StateProvider<M>>(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<ViewNotifier<T>>()!.notifier!._internalModel();
}