UnmanagedRestorationScope constructor Null safety

const UnmanagedRestorationScope(
  1. {Key? key,
  2. RestorationBucket? bucket,
  3. required Widget child}
)

Creates an UnmanagedRestorationScope.

When bucket is null state restoration is turned off for the child and its descendants.

The child must not be null.

Implementation

const UnmanagedRestorationScope({
  super.key,
  this.bucket,
  required super.child,
}) : assert(child != null);