onInit method
Called immediately after the widget is allocated in memory. You might use this to initialize something for the controller.
Implementation
@override
void onInit() {
// userCategory = storage.read("USER_CATEGORY");
// callHistoryApi();
// getClockedInOutStatus();
// designationId = storage.read("DESIGNATION_ID");
userId = storage.read("USER_ID") ?? "";
userLevelName = storage.read("LEVEL_NAME_LOGIN") ?? "";
partnerId = storage.read("PARTNER_ID_LOGIN") ?? "";
super.onInit();
}