of static method
Retrieve the nearest FaceDetectionController from the widget tree.
Implementation
static FaceDetectionController of(BuildContext context) {
final provider =
context.dependOnInheritedWidgetOfExactType<FaceDetectionProvider>();
assert(provider != null, 'No FaceDetectionProvider found in context');
return provider!.controller;
}