DetailVisibility class
Configuration that defines which visual elements should be rendered at a given Level of Detail.
This class provides fine-grained control over which parts of the node flow editor are visible. Use the factory presets (minimal, standard, full) for common configurations, or create custom configurations.
Example:
// Use a preset
final visibility = DetailVisibility.minimal;
// Create a custom configuration
final custom = DetailVisibility(
showNodeContent: true,
showPorts: true,
showPortLabels: false,
showConnectionLines: true,
showConnectionLabels: false,
showConnectionEndpoints: false,
showResizeHandles: false,
);
Constructors
- DetailVisibility({bool showNodeContent = true, bool showPorts = true, bool showPortLabels = true, bool showConnectionLines = true, bool showConnectionLabels = true, bool showConnectionEndpoints = true, bool showResizeHandles = true})
-
Creates a visibility configuration with the specified settings.
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showConnectionEndpoints → bool
-
Whether to show connection endpoint markers (start/end decorations).
final
- showConnectionLabels → bool
-
Whether to show labels on connections.
final
- showConnectionLines → bool
-
Whether to show connection lines between nodes.
final
- showNodeContent → bool
-
Whether to show node content (custom widgets inside nodes).
final
- showPortLabels → bool
-
Whether to show labels next to ports.
final
- showPorts → bool
-
Whether to show port shapes on nodes.
final
- showResizeHandles → bool
-
Whether to show resize handles on selected nodes.
final
Methods
-
copyWith(
{bool? showNodeContent, bool? showPorts, bool? showPortLabels, bool? showConnectionLines, bool? showConnectionLabels, bool? showConnectionEndpoints, bool? showResizeHandles}) → DetailVisibility - Creates a copy of this configuration with the specified overrides.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- full → const DetailVisibility
- Full visibility preset - shows everything.
- minimal → const DetailVisibility
- Minimal visibility preset - shows only simple colored shapes.
- standard → const DetailVisibility
- Standard visibility preset - shows nodes with ports and connections.