REdgeInsets.only constructor

REdgeInsets.only({
  1. double bottom = 0,
  2. double right = 0,
  3. double left = 0,
  4. double top = 0,
})

Creates adapt insets with only the given values non-zero.

{@tool snippet}

Adapt left margin indent of 40 pixels:

const REdgeInsets.only(left: 40.0)

{@end-tool}

Implementation

REdgeInsets.only({
  double bottom = 0,
  double right = 0,
  double left = 0,
  double top = 0,
}) : super.only(
        bottom: bottom.r,
        right: right.r,
        left: left.r,
        top: top.r,
      );