newController property
Implementation
Future<CameraController?> get newController async =>
switch (await currentCamera) {
null => null,
CameraDescription cd => CameraController(
// Get a specific camera from the list of available cameras.
cd,
// Define the resolution to use.
ResolutionPreset.max,
)
};