Options class

The core api for Graph Options.

图配置项

Constructors

Options()

Properties

backgroundBuilder BackgroundBuilder
use for create background widget.
getter/setter pair
edgePanelBuilder EdgePanelBuilder?
The builder of the edge data panel, triggered when the mouse hovers.
getter/setter pair
edgeShape EdgeShape
set shape strategy for components of edge.
getter/setter pair
enableHit bool
if enable hit.
getter/setter pair
graphStyle GraphStyle
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
horizontalControllerHeight double
@en: the horizontal controller panel height. Default to 50
getter/setter pair
imgUrlGetter String? Function(Vertex)
@en: the url getter of vertex image.
getter/setter pair
legendBuilder PositionComponent Function(Color color, int i)
@en: legend component builder
getter/setter pair
legendTextBuilder TextComponent<TextRenderer> Function(String tag, int i, Color color, Vector2 position)
@en: default legend text builder
getter/setter pair
onVertexTapCancel ↔ dynamic Function(Vertex vertex, TapCancelEvent)?
@en: event callback when tap cancel on vertex.
getter/setter pair
onVertexTapDown ↔ dynamic Function(Vertex vertex, TapDownEvent)?
@en: event callback when tap down on vertex.
getter/setter pair
onVertexTapUp ↔ dynamic Function(Vertex vertex, TapUpEvent)?
@en: event callback when tap up on vertex.
getter/setter pair
panelDelay Duration?
@en: the delay of overlay disappear.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaleRange Vector2
@en: the graph scale range. default to Vector2(0.05, 5)
getter/setter pair
showText bool
@en: if show text in vertex. default vertex.id, if you want to show other text, you can set textGetter.
getter/setter pair
textGetter String Function(Vertex)
@en: the text getter of vertex.
getter/setter pair
useLegend bool
if render legend in canvas.
getter/setter pair
vertexPanelBuilder VertexPanelBuilder?
The builder of the vertex panel, triggered when the mouse hovers.
getter/setter pair
vertexShape VertexShape
set shape strategy for components of vertex.
getter/setter pair
vertexTapUpPanel Widget?
getter/setter pair
vertexTapUpPanelWidth double
@en: the vertex tap up panel width. Default to 430
getter/setter pair
verticalControllerWidth double
@en: the vertical controller panel width. Default to 340
getter/setter pair

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