shimmer method
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,
);
}