RenderSliverPadding constructor
- required EdgeInsetsGeometry padding,
- TextDirection? textDirection,
- RenderSliver? child,
Creates a render object that insets its child in a viewport.
The padding
argument must have non-negative insets.
Implementation
RenderSliverPadding({
required EdgeInsetsGeometry padding,
TextDirection? textDirection,
RenderSliver? child,
}) : assert(padding.isNonNegative),
_padding = padding,
_textDirection = textDirection {
this.child = child;
}