merge method

  1. @override
BorderRadiusGeometryDto merge(
  1. covariant BorderRadiusGeometryDto? other
)
override

Merges this object with other, returning a new object of type T.

Implementation

@override
BorderRadiusGeometryDto merge(BorderRadiusGeometryDto? other) {
  if (other == null) return this;

  return BorderRadiusGeometryDto(
    topLeft: other.topLeft ?? topLeft,
    topRight: other.topRight ?? topRight,
    bottomLeft: other.bottomLeft ?? bottomLeft,
    bottomRight: other.bottomRight ?? bottomRight,
    topStart: other.topStart ?? topStart,
    topEnd: other.topEnd ?? topEnd,
    bottomStart: other.bottomStart ?? bottomStart,
    bottomEnd: other.bottomEnd ?? bottomEnd,
  );
}