errorBuilder property

SceneErrorBuilder? errorBuilder
final

Builds the widget shown in place of the loading widget when the engine's shared static resources fail to load (Scene.initializeStaticResources), for example when a web build cannot fetch its shader bundle.

Its retry callback loads them again and, on success, reveals the scene as usual. The view never retries on its own; the app decides when. Providing it gates the view like loadingBuilder, and the error it receives is not reported to FlutterError.onError. When null, the error is reported and the view stays on its loading widget.

Implementation

final SceneErrorBuilder? errorBuilder;