onInit method
void
onInit()
Called immediately after the object is instantiated.
Use this method for isolated initialization logic, such as setting up internal state or starting independent listeners. This runs before the object is returned to the caller.
Implementation
void onInit() {}