skeletonIf method

Widget skeletonIf(
  1. bool condition, {
  2. SkeletonConfig? config,
})

Conditionally shows skeleton or actual widget.

Implementation

Widget skeletonIf(
  bool condition, {
  SkeletonConfig? config,
}) {
  return skeleton(isLoading: condition, config: config);
}