ondevicemotion property
dynamic Function(DeviceMotionEvent)?
get
ondevicemotion
Available only in secure contexts.
Implementation
_i2.dynamic Function(_i3.DeviceMotionEvent)? get ondevicemotion =>
(_i3.DeviceMotionEvent p0) => _i4.callMethod(
_i4.getProperty(
this,
'ondevicemotion',
),
r'call',
[
this,
p0,
],
);
set
ondevicemotion
(dynamic value(DeviceMotionEvent)?)
Implementation
set ondevicemotion(_i2.dynamic Function(_i3.DeviceMotionEvent)? value) {
_i4.setProperty(
this,
'ondevicemotion',
value == null ? _i6.undefined : _i4.allowInterop(value),
);
}