PageStorage constructor Null safety

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

Creates a widget that provides a storage bucket for its descendants.

The bucket argument must not be null.

Implementation

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