Padding constructor

const Padding(
  1. {Key key,
  2. @required EdgeInsetsGeometry padding,
  3. Widget child}
)

Creates a widget that insets its child.

The padding argument must not be null.

Implementation

const Padding({
  Key key,
  @required this.padding,
  Widget child,
}) : assert(padding != null),
     super(key: key, child: child);