SliverPadding constructor Null safety

const SliverPadding(
  1. {Key? key,
  2. required EdgeInsetsGeometry padding,
  3. Widget? sliver}
)

Creates a sliver that applies padding on each side of another sliver.

The padding argument must not be null.

Implementation

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