of static method
Retrieves the Dependencies instance from the current build context.
context
: The current build context.
Returns the Dependencies instance provided by the Scope widget, which is created automatically by the DependenciesBuilder widget and the ViewModelStatelessWidget<T>.
Implementation
static Dependencies of(BuildContext context) {
final dependencies = context.dependOnInheritedWidgetOfExactType<Scope>();
return dependencies!.scope;
}