deviceMotionEvent constant Null safety

EventStreamProvider<DeviceMotionEvent> const deviceMotionEvent

Static factory designed to expose devicemotion events to event handlers that are not necessarily instances of Window.

See EventStreamProvider for usage information.

Implementation

static const EventStreamProvider deviceMotionEvent =
    const EventStreamProvider('devicemotion')