HotRestartListener typedef
HotRestartListener =
void Function(Object? message)
Listener when hot restarted.
You can release some native resources, such like delete the pointer which is created by ffi.
NOTE that:
- This listener is only received on debug mode.
- You should not comunicate with the
IrisMethodChannel
anymore inside this listener. - You should not do some asynchronous jobs inside this listener.
Implementation
typedef HotRestartListener = void Function(Object? message);