combineAll<T extends Attribute> static method

Mix<T> combineAll<T extends Attribute>(
  1. List<Mix<T>> mixes
)

Same as combine, but accepts a List of Mix instances

Implementation

static Mix<T> combineAll<T extends Attribute>(List<Mix<T>> mixes) {
  final attributes = mixes.expand((element) => element.attributes).toList();
  final variantToApply =
      mixes.expand((element) => element.variantToApply).toList();

  return Mix._(
    attributes,
    variantToApply: variantToApply,
  );
}