blurXY method

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

Adds a blurXY extension to AnimateManager (Animate and AnimateList). This blurs uniformly according to the double begin/end values.

Implementation

T blurXY({
  Duration? delay,
  Duration? duration,
  Curve? curve,
  double? begin,
  double? end,
}) {
  end ??= (begin == null ? BlurEffect.defaultBlur : BlurEffect.neutralBlur);
  begin ??= BlurEffect.neutralBlur;
  return addEffect(BlurEffect(
    delay: delay,
    duration: duration,
    curve: curve,
    begin: Offset(begin, begin),
    end: Offset(end, end),
  ));
}