SliverPadding constructor

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

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

Implementation

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