StatefulBuilder2 constructor
const
StatefulBuilder2({
- Key? key,
- required StatefulWidgetBuilder builder,
- VoidCallback? onDispose,
Creates a widget that both has state and delegates its build to a callback.
The builder argument must not be null.
Implementation
const StatefulBuilder2({
Key? key,
required this.builder,
this.onDispose,
}) : assert(builder != null),
super(key: key);