GraphNodeViewBehavior class
Controls how nodes are rendered and how they interact with user input.
This class manages node visualization and interaction through a combination of a custom widget builder, tooltip behavior, and an optional child widget. It provides control over the visual representation of nodes and their response to user interactions.
Use GraphNodeViewBehavior.defaultBehavior for standard node rendering with configurable tooltip options and node styles. For custom node rendering, provide your own builder function.
See also:
- GraphTooltipBehavior, which defines tooltip display behavior
- GraphDefaultNodeRenderer, which provides default node rendering
Constructors
- GraphNodeViewBehavior.new({required GraphNodeWidgetBuilder builder, GraphTooltipBehavior? tooltipBehavior, Widget? child})
-
Creates a node view behavior with the specified configuration.
const
- GraphNodeViewBehavior.defaultBehavior({GraphTooltipPosition tooltipPosition = GraphTooltipPosition.right, GraphTooltipTriggerMode tooltipTriggerMode = GraphTooltipTriggerMode.hover, GraphTooltipWidgetBuilder? tooltipBuilder, GraphDefaultNodeRendererWidgetBuilder? nodeRendererBuilder, GraphDefaultNodeRendererStyle nodeRendererStyle = const GraphDefaultNodeRendererStyle(), Widget? child})
-
Creates a default node view behavior with standard configuration.
factory
Properties
- builder → GraphNodeWidgetBuilder
-
final
- child → Widget?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tooltipBehavior → GraphTooltipBehavior?
-
final
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