TSkeleton constructor

const TSkeleton({
  1. Key? key,
  2. Widget? child,
  3. bool loading = true,
  4. double? width,
  5. double? height,
  6. BorderRadius? borderRadius,
  7. BoxShape shape = BoxShape.rectangle,
  8. Color? color,
  9. Color? highlightColor,
  10. Duration duration = const Duration(milliseconds: 1500),
  11. EdgeInsetsGeometry? padding,
  12. EdgeInsetsGeometry? margin,
})

Creates a generic skeleton loader widget.

Implementation

const TSkeleton({
  super.key,
  this.child,
  this.loading = true,
  this.width,
  this.height,
  this.borderRadius,
  this.shape = BoxShape.rectangle,
  this.color,
  this.highlightColor,
  this.duration = const Duration(milliseconds: 1500),
  this.padding,
  this.margin,
});