shimmer method
Extension method to directly access VxShimmer with any widget without wrapping or with dot operator.
show shimmer extension
Implementation
Widget shimmer({
Key? key,
Gradient? gradient,
Duration duration = const Duration(seconds: 1),
int count = 10000,
bool showAnimation = true,
bool showGradient = false,
Color primaryColor = Colors.grey,
Color? secondaryColor,
}) =>
VxShimmer(
key: key,
count: count,
duration: duration,
gradient: gradient,
primaryColor: primaryColor,
secondaryColor: secondaryColor,
showAnimation: showAnimation,
showGradient: showGradient,
child: this,
);