tryDelegateOf static method

FRouterDelegate? tryDelegateOf(
  1. BuildContext context, {
  2. bool listen = false,
})

Implementation

static FRouterDelegate? tryDelegateOf(BuildContext context,
    {bool listen = false}) {
  try {
    return delegateOf(context);
  } on ProviderNotFoundException {
    return null;
  }
}