DraggingOptions class

New in 2.0, this class contains options for dragging and moving parts.

This is used by Diagram#moveParts, Diagram#computeMove, and DraggingTool#computeMove.

Both the Diagram and its DraggingTool have a DraggingOptions instance. Typically, only the DraggingTool one is used, unless the Diagram has no DraggingTool defined.

In typical DraggingTool operation you do not need to create or modify a DraggingOptions instance. Setting properties on the DraggingTool such as DraggingTool#isGridSnapEnabled sets the value on the DraggingTool#dragOptions instance for you.

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

DraggingOptions()
factory

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

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