paddingAll method

Padding paddingAll(
  1. double padding
)

Applies uniform padding to all sides of the widget.

Creates equal padding on the left, top, right, and bottom sides. This is one of the most commonly used padding methods for creating consistent spacing around content.

Parameters:

  • padding: The amount of padding to apply to all sides.

Returns a Padding widget with uniform padding on all sides.

Example:

Icon(Icons.star)
  .paddingAll(12.0); // Adds 12px padding on all sides

Implementation

Padding paddingAll(double padding) => this.padding(EdgeInsets.all(padding));