OpacityEffect.by constructor

OpacityEffect.by(
  1. double offset,
  2. EffectController controller, {
  3. OpacityProvider? target,
  4. void onComplete()?,
  5. ComponentKey? key,
})

This constructor will set the opacity in relation to it's current opacity over time.

Implementation

OpacityEffect.by(
  double offset,
  super.controller, {
  OpacityProvider? target,
  super.onComplete,
  super.key,
}) : _opacityOffset = offset {
  this.target = target;
}