REdgeInsetsDirectional.only constructor

REdgeInsetsDirectional.only({
  1. double bottom = 0,
  2. double end = 0,
  3. double start = 0,
  4. double top = 0,
})

Creates insets with only the given values non-zero.

{@tool snippet}

Adapt margin indent of 40 pixels on the leading side:

const REdgeInsetsDirectional.only(start: 40.0)

{@end-tool}

Implementation

REdgeInsetsDirectional.only({
  double bottom = 0,
  double end = 0,
  double start = 0,
  double top = 0,
}) : super.only(
        bottom: bottom.r,
        start: start.r,
        end: end.r,
        top: top.r,
      );