DragTargetDetails<T> constructor Null safety

DragTargetDetails<T>(
  1. {required T data,
  2. required Offset offset}
)

Creates details for a DragTarget callback.

The offset must not be null.

Implementation

DragTargetDetails({required this.data, required this.offset}) : assert(offset != null);