WidgetDeclaration constructor

const WidgetDeclaration(
  1. String name,
  2. DynamicMap? initialState,
  3. BlobNode root
)

Binds the given name to the definition given by root.

The initialState may be null. If it is not, this represents a stateful widget.

Implementation

const WidgetDeclaration(this.name, this.initialState, this.root) : assert(root is ConstructorCall || root is Switch);