mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-24 16:30:40 +00:00
10 lines
245 B
Dart
10 lines
245 B
Dart
|
import 'package:light_sensor/light_sensor.dart';
|
||
|
|
||
|
class LightSensorService {
|
||
|
const LightSensorService();
|
||
|
|
||
|
Future<bool> hasSensor() async => await LightSensor.hasSensor ?? false;
|
||
|
|
||
|
Stream<int> luxStream() => LightSensor.lightSensorStream;
|
||
|
}
|