desaturate method

T desaturate({
  1. Duration? delay,
  2. Duration? duration,
  3. Curve? curve,
  4. double? begin,
  5. double? end,
})

Adds a SaturateEffect that animates the color saturation of the target. Defaults to a begin value of 1 (normal saturation) and an end value of 0 (fully desaturated / grayscale).

Implementation

T desaturate({
  Duration? delay,
  Duration? duration,
  Curve? curve,
  double? begin,
  double? end,
}) =>
    addEffect(SaturateEffect(
      delay: delay,
      duration: duration,
      curve: curve,
      begin: begin ?? SaturateEffect.neutralValue,
      end: end ?? SaturateEffect.defaultValue,
    ));