loader property

Widget Function(BuildContext, Widget, ImageChunkEvent?) get loader

Implementation

Widget Function(BuildContext, Widget, ImageChunkEvent?) get loader {
  return (_, child, loadingProgress) {
    if (loadingProgress == null) return child;

    return LayoutBuilder(builder: (context, constrains) {
      return FastSkeleton(
        radius: radius,
        height: height ?? constrains.maxHeight,
      );
    });
  };
}