of static method
Returns the CamController most closely associated with the given context.
Returns null if there is no CamController associated with the given context.
Implementation
static CamController? of(BuildContext context) {
final result =
context.dependOnInheritedWidgetOfExactType<CamControllerProvider>();
return result?.action;
}