LazyBuilder constructor
const
LazyBuilder({
- Key? key,
- required Widget child,
- LazyWidgetBuilder? builder,
- LazyOnErrorWidgetBuilder? onError,
- bool? forceTry,
- bool emptyOnError = false,
- BoxConstraints? constraints,
- bool preventRedundantRebuilds = false,
This can be used to build a Widget lazily, such that, we can get the RenderBox for the Widget then build another widget accordingly.
Implementation
const LazyBuilder({
Key? key,
required this.child,
this.builder,
this.onError,
this.forceTry,
this.emptyOnError = false,
this.constraints,
this.preventRedundantRebuilds = false,
}) : super(key: key);