onDispose method
This methods will be called when the instance will disposed
- Example:
void onDispose() { super.onDispose(); print('Instance was disposed'); }
Implementation
@mustCallSuper
void onDispose() {
log(runtimeType.toString() + ' Disposed');
}