copyWith method

SidesValue<T> copyWith({
  1. T? bottom,
  2. T? left,
  3. T? right,
  4. T? top,
})

Implementation

SidesValue<T> copyWith({
  T? bottom,
  T? left,
  T? right,
  T? top,
}) {
  return SidesValue<T>(
    bottom: bottom ?? this.bottom,
    left: left ?? this.left,
    right: right ?? this.right,
    top: top ?? this.top,
  );
}