dragBounds property

Rect? dragBounds
final

Optional Rect that constrains how far the popup can be dragged from its base position. The rect values represent offset limits:

  • left / top = minimum offset (typically negative)
  • right / bottom = maximum offset (typically positive)

Use Rect.fromCenter(center: Offset.zero, width: …, height: …) to create symmetric bounds around the original position.

Implementation

final Rect? dragBounds;