StageConfig class

Constructors

StageConfig({List<GraphNode> nodes, void onSave(Graph graph), GraphNode onAddNew(Offset position), Size stageSize = const Size(2000, 2000), double initialZoom = 1.0, StageTheme theme = const StageTheme(), Offset cameraPosition})

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
initialCameraPosition Offset
The center position of the camera.
read / write
initialZoom double
Initial zoom value; smaller value = zoom out, bigger value = zoom in.
final
nodes List<GraphNode>
Initial list of nodes.
final
onAddNew GraphNode Function(Offset position)
This will be called when the user want to add a new node. The tapped position is passed as a parameter.
final
onSave → void Function(Graph graph)
This function will be called, when the user press the the save button. Gives back the current state (represented by a graph) as a parameter.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
stageSize Size
Size of the stage area where the entities (nodes) exist and can be moved
final
theme StageTheme
Configure basic stage theme colors.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited