previewWidget method
A widget that displays the preview frames of a camera device.
This should only be called after passing as a parameter to a CameraController and CameraController.initialize has been called.
Implementation
@override
Future<Widget> previewWidget() {
verifyAttached();
return _previewWidgetCompleter.future;
}