initialize method
Initializes this controller and attaches the outputs.
The returned Future of this method should be AWAITED before calling any other methods.
Implementation
@override
Future<void> initialize() async {
super.initialize();
camera = await Camera.open(device.info.cameraId);
cameraParameters = await camera.getParameters();
await Future.wait(
outputs.map<Future<void>>((CameraOutput output) => output.attach(this)),
eagerError: true,
);
}