desaturate method

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

Adds a desaturate extension to AnimateManager (Animate and AnimateList). This is identical to the saturate extension, except it defaults to begin=1, end=0.

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