find<T> method

T? find<T>({
  1. BuildContext? context,
  2. Object? group,
  3. bool useEntryGroup = true,
})

Implementation

T? find<T>(
    {BuildContext? context, Object? group, bool useEntryGroup = true}) {
  final dependence = getRouteDependence(context);

  if (context != null && useEntryGroup) {
    final entry = RouteQueueEntry.of(context);
    group ??= entry?.getGroup(T);
  }

  return Node.defaultFindData(
      getAlias(T), dependence, globalDependence, group);
}