PointerSignalEvent constructor Null safety

const PointerSignalEvent(
  1. {Duration timeStamp = Duration.zero,
  2. int pointer = 0,
  3. PointerDeviceKind kind = PointerDeviceKind.mouse,
  4. int device = 0,
  5. Offset position = Offset.zero,
  6. int embedderId = 0}
)

Abstract const constructor. This constructor enables subclasses to provide const constructors so that they can be used in const expressions.

Implementation

const PointerSignalEvent({
  super.timeStamp,
  super.pointer,
  super.kind = PointerDeviceKind.mouse,
  super.device,
  super.position,
  super.embedderId,
});