ViewportEvents class
Events related to viewport/canvas interactions (pan, zoom, canvas taps)
Constructors
-
ViewportEvents({ValueChanged<
GraphViewport> ? onMove, ValueChanged<GraphViewport> ? onMoveStart, ValueChanged<GraphViewport> ? onMoveEnd, ValueChanged<Offset> ? onCanvasTap, ValueChanged<Offset> ? onCanvasDoubleTap, ValueChanged<Offset> ? onCanvasContextMenu}) -
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onCanvasContextMenu
→ ValueChanged<
Offset> ? -
Called on secondary tap on empty canvas (right-click/long-press for context menu)
Receives the tap position in graph coordinates
final
-
onCanvasDoubleTap
→ ValueChanged<
Offset> ? -
Called when double-tapping on empty canvas area (not on nodes/connections)
Receives the tap position in graph coordinates
final
-
onCanvasTap
→ ValueChanged<
Offset> ? -
Called when tapping on empty canvas area (not on nodes/connections)
Receives the tap position in graph coordinates
final
-
onMove
→ ValueChanged<
GraphViewport> ? -
Called continuously during viewport movement (pan or zoom)
Receives the new viewport state
final
-
onMoveEnd
→ ValueChanged<
GraphViewport> ? -
Called when viewport movement ends
Receives the final viewport state
final
-
onMoveStart
→ ValueChanged<
GraphViewport> ? -
Called when viewport movement starts
Receives the initial viewport state
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{ValueChanged< GraphViewport> ? onMove, ValueChanged<GraphViewport> ? onMoveStart, ValueChanged<GraphViewport> ? onMoveEnd, ValueChanged<Offset> ? onCanvasTap, ValueChanged<Offset> ? onCanvasDoubleTap, ValueChanged<Offset> ? onCanvasContextMenu}) → ViewportEvents -
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