VrInputEventSnapshot.fromEvent constructor
VrInputEventSnapshot.fromEvent(
- VrInputEvent event
Copies every payload value synchronously before an async send can retain it.
Implementation
factory VrInputEventSnapshot.fromEvent(VrInputEvent event) {
final wireData = _toWireValue(event.data);
return VrInputEventSnapshot._(
type: event.type,
source: event.source,
targetId: event.targetId,
data: wireData == null
? null
: _fromWireValue(wireData) as Map<String, dynamic>,
active: event.active,
timestampMicrosecondsSinceEpoch: event.timestampMicrosecondsSinceEpoch,
);
}