SkeletonLoader.text constructor

SkeletonLoader.text({
  1. double width = double.infinity,
  2. double height = 14,
  3. EdgeInsets? margin,
  4. Key? key,
})

Creates a text line skeleton

Implementation

factory SkeletonLoader.text({
  double width = double.infinity,
  double height = 14,
  EdgeInsets? margin,
  Key? key,
}) {
  return SkeletonLoader(
    width: width,
    height: height,
    borderRadius: 4,
    margin: margin ?? const EdgeInsets.symmetric(vertical: 4),
    key: key,
  );
}