motionChangeStream property
Stream of motion change events (moving/stationary transitions).
Implementation
static Stream<Location> get motionChangeStream {
return events
.where((event) => event.type == EventType.motionChange)
.map((event) => event.data)
.where((data) => data is Location)
.cast<Location>();
}