rememberAsyncImagePainter
Return an AsyncImagePainter that executes an ImageRequest asynchronously and renders the result.
Parameters
Either an ImageRequest or the ImageRequest.data value.
A Painter that is displayed while the image is loading.
A Painter that is displayed when the image request is unsuccessful.
A Painter that is displayed when the request's ImageRequest.data is null.
Called when the image request begins loading.
Called when the image request completes successfully.
Called when the image request completes unsuccessfully.
Sampling algorithm applied to a bitmap when it is scaled and drawn into the destination.
Return an AsyncImagePainter that executes an ImageRequest asynchronously and renders the result.
Parameters
Either an ImageRequest or the ImageRequest.data value.
A callback to transform a new State before it's applied to the AsyncImagePainter. Typically this is used to overwrite the state's Painter.
Called when the state of this painter changes.
Sampling algorithm applied to a bitmap when it is scaled and drawn into the destination.