getRaw method
Implementation
@override
Stream<SensorVector3> getRaw() {
var timestampAtLastCall = DateTime.now().millisecondsSinceEpoch;
return mapCustomEventsToSensorVector<GyroscopeEvent>(gyroscopeEvents).where((event) {
if (DateTime.now().millisecondsSinceEpoch - timestampAtLastCall > inMillis){
timestampAtLastCall = DateTime.now().millisecondsSinceEpoch;
return true;
}
return false;
});
}