ZenRouteExtensions extension

Extension methods for convenient scope access from BuildContext

on

Properties

zenScope ZenScope?

Available on BuildContext, provided by the ZenRouteExtensions extension

Gets the current ZenScope from the widget tree
no setter
zenScopeRequired ZenScope

Available on BuildContext, provided by the ZenRouteExtensions extension

Gets the current ZenScope from the widget tree (throws if not found)
no setter

Methods

findInScope<T>({String? tag}) → T

Available on BuildContext, provided by the ZenRouteExtensions extension

Finds a dependency in the current scope
findInScopeOrNull<T>({String? tag}) → T?

Available on BuildContext, provided by the ZenRouteExtensions extension

Finds a dependency in the current scope, returning null if not found