animateWidgetLineTrace method
Widget
animateWidgetLineTrace(
{ - int delayMs = 0,
- int durationMs = 1500,
- bool repeat = false,
- bool animate = true,
})
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),
),
);
}