opacity method

Future<void> opacity({
  1. required Duration duration,
  2. Curve curve = Curves.linear,
  3. double begin = 0.0,
  4. double end = 0.0,
})

Animates transparency.

Set the starting transparency to begin.

Set the transparency at the end to end.

Set the animation duration in duration.

Set the animation curve to curve.

透明度のアニメーションを行います。

beginに開始時の透明度を設定します。

endに終了時の透明度を設定します。

durationにアニメーションの時間を設定します。

curveにアニメーションのカーブを設定します。

Implementation

Future<void> opacity({
  required Duration duration,
  Curve curve = Curves.linear,
  double begin = 0.0,
  double end = 0.0,
}) {
  return runAnimateQuery(
    _OpacityEffectQuery(
      duration: duration,
      curve: curve,
      begin: begin,
      end: end,
    ),
  );
}