only static method

EdgeInsetsGeometry only({
  1. double top = 0,
  2. double right = 0,
  3. double bottom = 0,
  4. double left = 0,
  5. bool withResponsive = true,
})

Implementation

static EdgeInsetsGeometry only(
    {double top = 0,
    double right = 0,
    double bottom = 0,
    double left = 0,
    bool withResponsive = true}) {
  if (withResponsive) {
    return EdgeInsets.only(
        left: MySize.getScaledSizeHeight(left),
        right: MySize.getScaledSizeHeight(right),
        top: MySize.getScaledSizeHeight(top),
        bottom: MySize.getScaledSizeHeight(bottom));
  } else {
    return EdgeInsets.only(
        left: left, right: right, top: top, bottom: bottom);
  }
}