onLoad abstract method

Future<void> onLoad(
  1. Map<String, dynamic> state, {
  2. bool hotloaded = false,
})

Called when the node needs to load its state from storage. After startup, your state will be saved again so feel free to modify your node for assuming defaults if needed.

Implementation

Future<void> onLoad(Map<String, dynamic> state, {bool hotloaded = false});