onStop abstract method

Future<void> onStop()

Called when the node is stopped. You may still write to your state as the node will save its state after this method is called.

Implementation

Future<void> onStop();