• Jonah Williams's avatar
    Ensure all errors thrown by image providers can be caught by developers. (#25980) · d84879d9
    Jonah Williams authored
    * Ensure all errors thrown by image providers can be caught by developers.
    
    Add an `onError` parameter to the ImageCache.putIfAbsent method.
    In the event that an error is thrown when resolving an image, catch if
    this parameter is provided. Use the onError parameter to ensure that all
    errors thrown are forwarded to the ImageStream error channel instead of
    directly into the void.
    d84879d9
image_provider_test.dart 2.76 KB