Mix.combine constructor Null safety

Mix.combine(
  1. [Mix? mix1,
  2. Mix? mix2,
  3. Mix? mix3,
  4. Mix? mix4,
  5. Mix? mix5]
)

Merges 2 or 3 shape definitions

Implementation

factory Mix.combine([
  Mix? mix1,
  Mix? mix2,
  Mix? mix3,
  Mix? mix4,
  Mix? mix5,
]) {
  final list = <Attribute>[];
  if (mix1 != null) list.addAll(mix1.params);
  if (mix2 != null) list.addAll(mix2.params);
  if (mix3 != null) list.addAll(mix3.params);
  if (mix4 != null) list.addAll(mix4.params);
  if (mix5 != null) list.addAll(mix5.params);

  return Mix._(list);
}