of static method
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;
}