TapUpDetails constructor Null safety
- {required PointerDeviceKind kind,
- Offset globalPosition = Offset.zero,
- 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;