onSamplingStart method

  1. @override
void onSamplingStart()
override

Handler called when sampling period starts.

Implementation

@override
void onSamplingStart() {
  _sensorStartTime = DateTime.now().microsecondsSinceEpoch;
  _luxValues.clear();
}