color method

Future<void> color({
  1. required Duration duration,
  2. Curve curve = Curves.linear,
  3. Color begin = Colors.transparent,
  4. Color end = Colors.transparent,
  5. BlendMode blendMode = BlendMode.color,
})

Perform color animation.

Set the starting color to begin.

Set the end time to end.

Set the blend mode to blendMode.

Set the animation duration in duration.

Set the animation curve to curve.

色アニメーションを行います。

beginに開始時の色を設定します。

endに終了時の々を設定します。

blendModeにブレンドモードを設定します。

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

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

Implementation

Future<void> color({
  required Duration duration,
  Curve curve = Curves.linear,
  Color begin = Colors.transparent,
  Color end = Colors.transparent,
  BlendMode blendMode = BlendMode.color,
}) {
  return runAnimateQuery(
    _ColorEffectQuery(
      duration: duration,
      curve: curve,
      begin: begin,
      end: end,
      blendMode: blendMode,
    ),
  );
}