onShouldUnload method
Custom logic to be executed during shouldUnload (consequently also in unload).
Returns a ShouldUnloadResult.
ShouldUnloadResult.shouldUnload == true
indicates that the module is safe to unload.
ShouldUnloadResult.shouldUnload == false
indicates that the module should not be unloaded.
In this case, ShouldUnloadResult.messages contains a list of string messages indicating
why unload was rejected.
Implementation
@protected
ShouldUnloadResult onShouldUnload() {
return ShouldUnloadResult();
}