SliverPadding constructor

const SliverPadding({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({
  Key key,
  @required this.padding,
  Widget sliver,
}) : assert(padding != null),
     super(key: key, child: sliver);