Padding constructor Null safety

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({
  super.key,
  required this.padding,
  super.child,
}) : assert(padding != null);