LongPressDownDetails constructor Null safety
- {Offset globalPosition = Offset.zero,
- Offset? localPosition,
- PointerDeviceKind? kind}
Creates the details for a GestureLongPressDownCallback.
The globalPosition
argument must not be null.
If the localPosition
argument is not specified, it will default to the
global position.
Implementation
const LongPressDownDetails({
this.globalPosition = Offset.zero,
Offset? localPosition,
this.kind,
}) : assert(globalPosition != null),
localPosition = localPosition ?? globalPosition;