RestorationScope constructor Null safety
Creates a RestorationScope.
Providing null as the restorationId turns off state restoration for the child and its descendants.
The child must not be null.
Implementation
const RestorationScope({
super.key,
required this.restorationId,
required this.child,
}) : assert(child != null);