HyperImageLoader typedef
Callback for loading images.
Use this to customize how images are fetched (e.g. using cached_network_image, or a local asset loader).
Parameters:
- src: The image URL
- onLoad: Callback when image loads successfully
- onError: Callback when image fails to load
Implementation
typedef HyperImageLoader = void Function(
String src,
void Function(ui.Image image) onLoad,
void Function(Object error) onError,
);