PointerSignal.fromSample constructor

PointerSignal.fromSample(
  1. PointerSample sample,
  2. PointerSignalType type
)

Implementation

factory PointerSignal.fromSample(
  PointerSample sample,
  PointerSignalType type,
) {
  return PointerSignal(
    type: type,
    pointerId: sample.pointerId,
    position: sample.position,
    timestampMs: sample.timestampMs,
    kind: sample.kind,
  );
}