merge method

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

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

Implementation

@override
ColorDto merge(ColorDto? other) {
  return other == null
      ? this
      : ColorDto.raw(
          value: other.value ?? value,
          directives: [...directives, ...other.directives],
        );
}