of<T extends DataContext> static method

T of<T extends DataContext>(
  1. BuildContext context
)

Implementation

static T of<T extends DataContext>(BuildContext context) {
  return Provider.of<T>(context, listen: false);
}