copyWith method

Mix<T> copyWith({
  1. List<T> attributes = const [],
  2. List<Variant<T>> variantToApply = const [],
})

Implementation

Mix<T> copyWith({
  List<T> attributes = const [],
  List<Variant<T>> variantToApply = const [],
}) {
  return Mix._(
    [...this.attributes, ...attributes],
    variantToApply: [...this.variantToApply, ...variantToApply],
  );
}