setEffectiveWeight method

dynamic setEffectiveWeight(
  1. dynamic weight
)

Implementation

setEffectiveWeight(weight) {
  this.weight = weight;

  // note: same logic as when updated at runtime
  _effectiveWeight = enabled ? weight : 0;

  return stopFading();
}