withSkeleton method

Widget withSkeleton({
  1. SkeletonConfig? config,
  2. double? widthFactor,
  3. double? heightFactor,
})

Converts this widget to a skeleton version.

Example:

Text("Hello").withSkeleton()

Implementation

Widget withSkeleton({
  SkeletonConfig? config,
  double? widthFactor,
  double? heightFactor,
}) {
  return Skeleton.from(this, config: config);
}