only static method

EdgeInsets only({
  1. double? top,
  2. double? bottom,
  3. double? left,
  4. double? right,
})

get padding only on given values non-zero.

Implementation

static EdgeInsets only({
  double? top,
  double? bottom,
  double? left,
  double? right,
}) =>
    _pad(top: top, bottom: bottom, left: left, right: right);