WidgetDeclaration constructor
const
WidgetDeclaration(
- String name,
- DynamicMap? initialState,
- 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);