build method

  1. @override
Widget build(
  1. BuildContext context,
  2. SkeletonizerBuildData data
)
override

Delegates the build to the SkeletonizerState

Implementation

@override
Widget build(BuildContext context, SkeletonizerBuildData data) {
  return SkeletonizerScope(
    enabled: data.enabled,
    config: data.config,
    isZone: data.isZone,
    isInsideZone: data.isInsideZone,
    animationController: data.animationController,
    child: data.enabled
        ? SliverSkeletonizerRenderObjectWidget(
            data: data,
            child: child,
          )
        : child,
  );
}