DraggableDetails constructor Null safety

DraggableDetails(
  1. {bool wasAccepted = false,
  2. required Velocity velocity,
  3. required Offset offset}
)

Creates details for a DraggableDetails.

If wasAccepted is not specified, it will default to false.

The velocity or offset arguments must not be null.

Implementation

DraggableDetails({
  this.wasAccepted = false,
  required this.velocity,
  required this.offset,
}) : assert(velocity != null),
     assert(offset != null);