DVStudioPaletteItem class
What the palette drags and the canvas accepts.
A factory rather than a node, so each drop creates a fresh node with its own id instead of dropping the same one repeatedly.
Constructors
- DVStudioPaletteItem({required String label, required DVPageNode create()})
-
const
Properties
- create → DVPageNode Function()
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- label → String
-
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
Static Properties
-
defaults
→ List<
DVStudioPaletteItem> -
The default palette: every leaf type the renderer knows, plus the layout
boxes. Built from
dvStudioLeafTypesrather than restated, so a new node type appears in the palette, the canvas and the code export together.no setter