onInit method Null safety

  1. @override
void onInit()
override

Register when initialized

Implementation

@override
onInit() {
  NotificationDispatchers.instance.registerDispatcher(this);
  super.onInit();
}