SelectionState<T, C> class

Represents the current selection state.

Type parameters:

  • T: The type of node data
  • C: The type of connection data

This includes both regular nodes and special node types (GroupNode, CommentNode). Use type checks like node is GroupNode to filter by node type.

Constructors

SelectionState({required List<Node<T>> nodes, required List<Connection<C>> connections})
const

Properties

connections List<Connection<C>>
Currently selected connections
final
hashCode int
The hash code for this object.
no setterinherited
hasSelection bool
Whether anything is selected
no setter
nodes List<Node<T>>
Currently selected nodes (includes GroupNode and CommentNode)
final
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