prepareImages abstract method

Future<void> prepareImages()

Prepare any images in the ScalableImage, by decoding them. If this is not done, images will be invisible (unless a different ScalableImage that has been prepared shares the image instances, as could happen with viewport setting.). This method may be called multiple times on the same ScalableImage. Each call to prepareImages() must be balanced with a call to unprepareImages to enable releasing the image resources -- see Image.dispose() in the Flutter library.

As mentioned above, images may be shared between multiple ScalableImage objects. For this reason, a count of the number of prepare calls is maintained for each image node. Users of this library should call prepareImages each time a new ScalableImage is created, and unprepareImages when the ScalableImage is no longer needed.

Implementation

Future<void> prepareImages();