supportedExposureModes method

  1. @override
Future<List<ExposureMode>> supportedExposureModes()
override

Retrieve all supported exposure modes for a device.

Implementation

@override
Future<List<ExposureMode>> supportedExposureModes() async {
  verifyInitialized();
  verifyNotDisposed();
  final bool lockSupported =
      await cameraParameters.isAutoExposureLockSupported();
  return <ExposureMode>[
    ExposureMode.continuous,
    if (lockSupported) ExposureMode.locked,
  ];
}