IconProviderCallback typedef

IconProviderCallback = void Function(ImageInfo? imageInfo, String? iconDescription, IconProviderError? error)

A callback of this type is invoked when an icon is received from the IconProvider in the ImageInfo format. The callback provides information about the loaded icon, or an IconProviderError if one occurred.

imageInfo The created ImageInfo containing the icon, or null if an error occurred.

iconDescription An English description of the created icon. It will be null if an error occurred.

error The error that occurred, or null if the icon is loaded successfully.

Implementation

typedef IconProviderCallback = void Function(
    ImageInfo? imageInfo, String? iconDescription, IconProviderError? error);