SliverOverlapInjector constructor Null safety

const SliverOverlapInjector(
  1. {Key? key,
  2. required SliverOverlapAbsorberHandle handle,
  3. Widget? sliver}
)

Creates a sliver that is as tall as the value of the given handle's layout extent.

The handle must not be null.

Implementation

const SliverOverlapInjector({
  super.key,
  required this.handle,
  Widget? sliver,
}) : assert(handle != null),
     super(child: sliver);