from static method

Widget from(
  1. Widget child, {
  2. SkeletonConfig? config,
})

Generates a skeleton from a widget.

Implementation

static Widget from(
  Widget child, {
  SkeletonConfig? config,
}) {
  return Builder(
    builder: (context) {
      return SkeletonParser.parse(
        child,
        config ?? SkeletonConfig.defaultConfig,
        context,
      );
    },
  );
}