only static method

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

Create responsive padding with individual values

Example:

padding: ResponsiveEdgeInsets.only(
  left: 2,
  top: 3,
  right: 2,
  bottom: 1,
)

Implementation

static EdgeInsets only({
  double? left,
  double? top,
  double? right,
  double? bottom,
}) {
  return EdgeInsets.only(
    left: left?.w ?? 0,
    top: top?.h ?? 0,
    right: right?.w ?? 0,
    bottom: bottom?.h ?? 0,
  );
}