skeleton method

Widget skeleton({
  1. Key? key,
  2. BoxShape? shape,
  3. EdgeInsetsGeometry? padding,
  4. Color? color,
  5. Color? shimmerColor,
  6. double? width,
  7. double? height,
  8. EdgeInsetsGeometry? margin,
  9. BorderRadiusGeometry? borderRadius,
  10. Duration? duration,
  11. bool active = true,
  12. VxSkeletonAnimationType type = VxSkeletonAnimationType.shimmer,
  13. double? stretchWidth,
})

Extension method to directly access VxSkeleton with any widget without wrapping or with dot operator.

show skeleton extension

Implementation

Widget skeleton(
        {Key? key,
        BoxShape? shape,
        EdgeInsetsGeometry? padding,
        Color? color,
        Color? shimmerColor,
        double? width,
        double? height,
        EdgeInsetsGeometry? margin,
        BorderRadiusGeometry? borderRadius,
        Duration? duration,
        bool active = true,
        VxSkeletonAnimationType type = VxSkeletonAnimationType.shimmer,
        double? stretchWidth}) =>
    VxSkeleton(
      key: key,
      active: active,
      color: color,
      borderRadius: borderRadius,
      duration: duration,
      height: height,
      margin: margin,
      padding: padding,
      shape: shape,
      shimmerColor: shimmerColor,
      stretchWidth: stretchWidth,
      type: type,
      width: width,
    );