find<T> static method

T? find<T>(
  1. BuildContext context
)

Implementation

static T? find<T>(BuildContext context) {
  try {
    final t = Provider.of<T>(context, listen: false);
    return t;
  } on ProviderNotFoundException {
    return null;
  }
}