getAmbientLight method

  1. @override
Future<double?> getAmbientLight({
  1. bool frontCamera = false,
})
override

Implementation

@override
Future<double?> getAmbientLight({bool frontCamera = false}) async {
  final double? lux = await methodChannel.invokeMethod('getAmbientLight', {
    'frontCamera': frontCamera,
  });
  return lux;
}