dispose method

dynamic dispose()

Stops listening for device motion events and cleans up resources.

Implementation

dispose() {
  window.removeEventListener('devicemotion', _onDeviceMotion.toJS);
}