shimmer method

Widget shimmer({
  1. Key? key,
  2. Gradient? gradient,
  3. Duration duration = const Duration(seconds: 1),
  4. int count = 10000,
  5. bool showAnimation = true,
  6. bool showGradient = false,
  7. Color primaryColor = Colors.grey,
  8. Color? secondaryColor,
})

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,
    );