copyWith method

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

Implementation

EdgeInsets copyWith({num? top, num? right, num? bottom, num? left}) {
  return EdgeInsets.only(
    top: top ?? this.top,
    right: right ?? this.right,
    bottom: bottom ?? this.bottom,
    left: left ?? this.left,
  );
}