copyWithEdge method

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

Implementation

Margins copyWithEdge({double? left, double? right, double? top, double? bottom}) => Margins(
      left: left != null ? Margin(left, this.left?.unit) : this.left,
      right: right != null ? Margin(right, this.right?.unit) : this.right,
      top: top != null ? Margin(top, this.top?.unit) : this.top,
      bottom: bottom != null ? Margin(bottom, this.bottom?.unit) : this.bottom,
    );