CloneAvatarHandler class
CloneAvatarHandler creates a clone of the draggable element as drag avatar. The avatar is removed at the end of the drag operation.
- Inheritance
-
- Object
- AvatarHandler
- CloneAvatarHandler
Constructors
Properties
- avatar ↔ Element?
-
Returns the avatar element during a drag operation.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- marginLeft → num?
-
Returns the (cached) left margin of avatar.
no setterinherited
- marginTop → num?
-
Returns the (cached) top margin of avatar.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cacheMargins(
) → void -
Caches the marginLeft and marginTop of avatar.
inherited
-
drag(
Point< num> startPosition, Point<num> position) → void -
Moves the drag avatar to the new
position
.override -
dragEnd(
Point< num> startPosition, Point<num> position) → void -
Called when the drag operation ends.
override
-
dragStart(
Element draggable, Point< num> startPosition) → void -
Called when the drag operation starts.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeTranslate(
) → void -
Removes the CSS transform of avatar. Also stops the requested animation
from setTranslate.
inherited
-
setLeftTop(
Point< num> position) → void -
Sets the CSS left/top values of avatar. Takes care of any left/top
margins the avatar might have to correctly position the element.
inherited
-
setTranslate(
Point< num> position) → void -
Sets the CSS transform translate of avatar. Uses requestAnimationFrame
to speed up animation.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited