onSamplingData method

  1. @override
void onSamplingData(
  1. dynamic event
)
override

Handler for handling onData events from the buffering stream.

Implementation

@override
void onSamplingData(event) {
  if (event is UserAccelerometerEvent) {
    userAccelerometerEventList.add(event);
  }
}