Skeleton.leaf constructor

const Skeleton.leaf({
  1. Key? key,
  2. required Widget child,
  3. bool enabled,
})

Creates a widget that forces the child to have a painting effect e.g a Shimmer effect when Skeletonizer.enabled is true

Implementation

const factory Skeleton.leaf({
  Key? key,
  required Widget child,
  bool enabled,
}) = _LeafSkeleton;