animateWidgetGoldShimmer method

Widget animateWidgetGoldShimmer({
  1. Color color = const Color(0xFFFFD700),
  2. int durationMs = 2000,
  3. bool repeat = true,
  4. bool animate = true,
})
  1. Gold Shimmer

Implementation

Widget animateWidgetGoldShimmer(
    {Color color = const Color(0xFFFFD700),
    int durationMs = 2000,
    bool repeat = true,
    bool animate = true}) {
  if (!animate) return this;
  return _baseAnimate(repeat: repeat).shimmer(
      duration: durationMs.ms,
      color: color.withColorOpacity(0.3),
      stops: [0, 0.5, 1]);
}