debugReinitializeFromAsset method
- String assetName
Test-only. Reloads this library from assetName's bytes while keeping
this library's identity and registry key. Production hot reload always
re-fetches the original asset path via reinitialize; this hook lets
tests simulate an edited bundle by swapping in a different fixture.
Implementation
String? debugReinitializeFromAsset(String assetName) {
final String? error = _reinitializeWithAsset(assetName);
if (error == null) {
_shaderReloadEpoch++;
}
return error;
}