BadSkeleton constructor

const BadSkeleton({
  1. Key? key,
  2. double? width,
  3. required double height,
  4. EdgeInsets? margin,
  5. Border? border,
  6. double borderRadius = 0,
  7. Color fill = Colors.grey,
  8. Duration duration = const Duration(seconds: 1),
  9. ShimmerDirection direction = ShimmerDirection.l2r,
  10. int repeat = 0,
  11. Duration repeatDelay = Duration.zero,
})

Implementation

const BadSkeleton({
  super.key,
  this.width,
  required this.height,
  this.margin,
  this.border,
  this.borderRadius = 0,
  this.fill = Colors.grey,
  this.duration = const Duration(seconds: 1),
  this.direction = ShimmerDirection.l2r,
  // this.rotateAngle = 0,
  this.repeat = 0,
  this.repeatDelay = Duration.zero,
}) : assert(repeat >= 0, 'out of range');