onlySafe static method

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

Create responsive padding with individual values using safe area

Implementation

static EdgeInsets onlySafe({
  double? left,
  double? top,
  double? right,
  double? bottom,
}) {
  return EdgeInsets.only(
    left: left?.wSafe ?? 0,
    top: top?.hSafe ?? 0,
    right: right?.wSafe ?? 0,
    bottom: bottom?.hSafe ?? 0,
  );
}