padding method

Padding padding({
  1. double? all,
  2. double? horizontal,
  3. double? vertical,
  4. double? left,
  5. double? right,
  6. double? top,
  7. double? bottom,
})

Implementation

Padding padding(
        {double? all,
        double? horizontal,
        double? vertical,
        double? left,
        double? right,
        double? top,
        double? bottom}) =>
    Padding(
      padding: EdgeInsets.fromLTRB(
          left ?? horizontal ?? all ?? 0,
          top ?? vertical ?? all ?? 0,
          right ?? horizontal ?? all ?? 0,
          bottom ?? vertical ?? all ?? 0),
      child: this,
    );