RenderPadding constructor
RenderPadding({
- required EdgeInsets padding,
- 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);
}