find<T> static method

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

Implementation

static T? find<T>(BuildContext context,
    {Object? group, bool useEntryGroup = true}) {
  final router = NRouter.of(context);

  return _GreenState.getLocal<T>(context, group, router) ??
      router.find<T>(
          context: context, group: group, useEntryGroup: useEntryGroup);
}