px method

Padding px(
  1. double value, {
  2. Key? key,
})

Gives custom padding horizontally.

Implementation

Padding px(
  double value, {
  Key? key,
}) =>
    Padding(
      key: key,
      padding: EdgeInsets.symmetric(horizontal: value),
      child: this,
    );