onHotReload method
Called during hot reload operations.
Override this method to transfer state to the new module implementation.
Parameters:
newModule
- The new module implementation
Implementation
FutureOr<void> onHotReload(Module newModule) async {}