AppRestarter constructor
const
AppRestarter({
- Key? key,
- Widget? child,
- WidgetBuilder? builder,
- Future<
void> onRestart()?,
Creates an AppRestarter with a static child.
Use builder instead when the subtree must be re-created from scratch
on every restart (e.g. when it holds references to re-created objects).
Implementation
const AppRestarter({
super.key,
this.child,
this.builder,
this.onRestart,
}) : assert(
child != null || builder != null,
'AppRestarter requires either child or builder.',
);