DragStartDetails constructor Null safety
- {Duration? sourceTimeStamp,
- Offset globalPosition = Offset.zero,
- Offset? localPosition,
- PointerDeviceKind? kind}
Creates details for a GestureDragStartCallback.
The globalPosition argument must not be null.
Implementation
DragStartDetails({
this.sourceTimeStamp,
this.globalPosition = Offset.zero,
Offset? localPosition,
this.kind,
}) : assert(globalPosition != null),
localPosition = localPosition ?? globalPosition;