animateWidgetLineTrace method

Widget animateWidgetLineTrace({
  1. int delayMs = 0,
  2. int durationMs = 1500,
  3. bool repeat = false,
  4. bool animate = true,
})
  1. Line Trace

Implementation

Widget animateWidgetLineTrace({
  int delayMs = 0,
  int durationMs = 1500,
  bool repeat = false,
  bool animate = true,
}) {
  if (!animate) return this;
  return _baseAnimate(delayMs: delayMs, repeat: repeat)
      .fadeIn(duration: 300.ms)
      .custom(
        duration: durationMs.ms,
        curve: Curves.easeInOutQuart,
        builder:
            (_, v, c) => ClipRect(
              child: Align(
                alignment: Alignment.centerLeft,
                widthFactor: v,
                child: c,
              ),
            ),
      );
}