desaturate method
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,
));