only static method

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

Returns EdgeInsets with only specified sides

Implementation

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