of static method

Provider of(
  1. BuildContext context
)

Implementation

static Provider of(BuildContext context) {
  return context.findAncestorWidgetOfExactType<Provider>()!;
}