of static method
Implementation
static Dependencies of(BuildContext context) {
final dependencies =
context.dependOnInheritedWidgetOfExactType<Dependencies>();
if (dependencies == null) {
throw FlutterError('Dependencies widget not found in the widget tree');
}
return dependencies;
}