Adds callback for a WPP event. Several callbacks may share an event.
callback
event
Future<void> on(String event, Function(dynamic) callback);