LoadingBuilder typedef

LoadingBuilder = Widget Function(BuildContext context, ImageChunkEvent? event)

A type definition for a callback to show a widget while the image is loading, a ImageChunkEvent is passed to inform progress

Implementation

typedef LoadingBuilder = Widget Function(
  BuildContext context,
  ImageChunkEvent? event,
);