copyWith method

CssLengthBox copyWith (
  1. {CssLength bottom,
  2. CssLength inlineEnd,
  3. CssLength inlineStart,
  4. CssLength left,
  5. CssLength right,
  6. CssLength top}
)

Creates a copy with the given measurements replaced with the new values.

Implementation

CssLengthBox copyWith({
  CssLength bottom,
  CssLength inlineEnd,
  CssLength inlineStart,
  CssLength left,
  CssLength right,
  CssLength top,
}) =>
    CssLengthBox(
      bottom: bottom ?? this.bottom,
      inlineEnd: inlineEnd ?? this.inlineEnd,
      inlineStart: inlineStart ?? this.inlineStart,
      left: left ?? _left,
      right: right ?? _right,
      top: top ?? this.top,
    );