DVStudioLeafType class

A leaf node type the page builder can place.

Renderer, Dart exporter and palette all read dvStudioLeafTypes, for the same reason the styling controls share one list: a type handled in the renderer but not the exporter produces a page that previews correctly and exports to code that will not compile.

Constructors

DVStudioLeafType({required String type, required String label, required DVPageNode create(), required Widget build(DVPageNode node), required String source(DVPageNode node, String escape(String layout))})
const

Properties

build → Widget Function(DVPageNode node)
Renders the node. Styling and actions are applied by the caller.
final
create → DVPageNode Function()
A new node of this type, as dropped from the palette.
final
hashCode → int
The hash code for this object.
no setterinherited
label → String
Palette label.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → String Function(DVPageNode node, String escape(String layout))
The node as Dart source, for toDartSource.
final
type → String
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