RenderPadding constructor

RenderPadding({
  1. required EdgeInsets padding,
  2. RenderBox? child,
})

Validates that padding is non-negative and adopts child when given.

Implementation

RenderPadding({required EdgeInsets padding, RenderBox? child})
  : _padding = _validatePadding(padding) {
  setSingleRenderObjectChild(this, child);
}