SliverPaddingModifier constructor

const SliverPaddingModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. required EdgeInsetsGeometry padding,
})

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

The padding argument must not be null.

Implementation

const SliverPaddingModifier({
  super.key,
  super.child,
  super.modifierKey,
  required this.padding,
});