StatefulComponentInstance constructor
StatefulComponentInstance(
- StatefulComponent component
Creates a new StatefulComponentInstance for the given component
.
Immediately triggers an initial build of the child components
via state.build
, which itself lazily initializes the state.
Implementation
StatefulComponentInstance(this.component) : super(component) {
_children ??= state.build();
}