waitForAssets method

Future<void> waitForAssets()

Waits for images to decode. Use this to ensure that images are properly displayed in Goldens. The implementation of this can be configured as part of GoldenToolkitConfiguration

If you have assets that are not loading with this implementation, please file an issue and we will explore solutions.

Implementation

Future<void> waitForAssets() => GoldenToolkit.configuration.primeAssets(this);