of static method

Dependencies of(
  1. BuildContext context
)

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;
}