paddingOnly method

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

Implementation

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