setBlendWeights method

void setBlendWeights(
  1. List<double> weights
)

Changes the playing blend's weights, every update as its parameters move; ignored when no blend plays or the count differs.

Implementation

void setBlendWeights(List<double> weights) {
  if (weights.length != blendClips.length) return;
  blendWeights = List.of(weights);
}