copyWith method

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

A copy of this value with the given members replaced.

Implementation

EdgeInsets copyWith({
  double? top,
  double? left,
  double? bottom,
  double? right,
}) => EdgeInsets(
  top: top ?? this.top,
  left: left ?? this.left,
  bottom: bottom ?? this.bottom,
  right: right ?? this.right,
);