shimmer method

Widget shimmer({
  1. Key? key,
  2. bool enabled = true,
  3. Color? baseColor,
  4. Color? highlightColor,
  5. ShimmerDirection direction = ShimmerDirection.auto,
  6. Duration duration = const Duration(milliseconds: 1500),
  7. int? loop,
})

Wraps this widget in an automatic, GPU-accelerated AppShimmer sweep.

Automatically matches layout geometry (text lines, avatars, images, chips) and renders exact matching skeleton bones over them without duplicate layout code!

Implementation

Widget shimmer({
  Key? key,
  bool enabled = true,
  Color? baseColor,
  Color? highlightColor,
  ShimmerDirection direction = ShimmerDirection.auto,
  Duration duration = const Duration(milliseconds: 1500),
  int? loop,
}) {
  return AppShimmer(
    key: key,
    enabled: enabled,
    baseColor: baseColor,
    highlightColor: highlightColor,
    direction: direction,
    duration: duration,
    loop: loop,
    child: this,
  );
}