ZenModulePageExtensions extension

Extension methods for convenient scope access from BuildContext

on

Properties

zenScope ZenScope?

Available on BuildContext, provided by the ZenModulePageExtensions extension

Gets the current ZenScope from the widget tree
no setter

Methods

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

Available on BuildContext, provided by the ZenModulePageExtensions extension

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

Available on BuildContext, provided by the ZenModulePageExtensions extension

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