of static method

EyeDrop of(
  1. BuildContext context
)

Implementation

static EyeDrop of(BuildContext context) {
  final eyeDrop = context.dependOnInheritedWidgetOfExactType<EyeDrop>();
  if (eyeDrop == null) {
    throw Exception(
        'No EyeDrop found. You must wrap your application within an EyeDrop widget.');
  }
  return eyeDrop;
}