SliverPadding constructor Null safety
- {Key? key,
- required EdgeInsetsGeometry padding,
- 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);