TapUpDetails constructor Null safety

TapUpDetails(
  1. {required PointerDeviceKind kind,
  2. Offset globalPosition = Offset.zero,
  3. Offset? localPosition}
)

The globalPosition argument must not be null.

Implementation

TapUpDetails({
  required this.kind,
  this.globalPosition = Offset.zero,
  Offset? localPosition,
}) : assert(globalPosition != null),
     localPosition = localPosition ?? globalPosition;