DragBoundaryDelegate<T> class
abstract
The interface for defining the algorithm for a boundary that a specified shape is dragged within.
See also:
- DragBoundary, an InheritedWidget that provides a DragBoundaryDelegate to its descendants.
T
is a data class that defines the shape being dragged. For example, when dragging a rectangle within the boundary,
T
should be a Rect
.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
isWithinBoundary(
T draggedObject) → bool - Returns whether the specified dragged object is within the boundary.
-
nearestPositionWithinBoundary(
T draggedObject) → T - Returns the given dragged object after moving it fully inside the boundary with the shortest distance.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited