assets property

ScenarioAssetBundle assets
final

The bundle this scenario reads assets through, installed over whatever pumpWidget pumps — so DefaultAssetBundle.of(context), and everything built on it, is already this one.

It caches values where rootBundle caches futures, which is what makes an asset the app has already read safe to read again from inside runAsync. Pass it wherever a widget takes a bundle explicitly:

SvgPicture.asset('assets/logo.svg', bundle: s.assets);

One per scenario, shared by every replay of its splits.

Implementation

final ScenarioAssetBundle assets;