initialize method

  1. @override
Future<void> initialize()

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();

  session.addInput(captureDeviceInput);
  await Future.wait(
    outputs.map<Future<void>>((CameraOutput output) => output.attach(this)),
    eagerError: true,
  );
}