init method

Future<void> init()

call init() once on a page to add eventListeners

Implementation

Future<void> init() async {
  await wpClient.initializeEventListener(_onNewEvent);
}