padding method

Padding padding(
  1. EdgeInsetsGeometry insets, {
  2. Key? key,
})

Insets this widget using caller-provided, non-negative padding.

Directional insets resolve using ambient Directionality.

Implementation

Padding padding(EdgeInsetsGeometry insets, {Key? key}) =>
    Padding(key: key, padding: insets, child: this);