init method Null safety

void init()

Implementation

void init() async {
  currentUser = await ApiService().getCurrentUser();
  usernameController.text = currentUser.username;
  nameController.text = currentUser.name;
  emailController.text = currentUser.email ?? "";
  phoneNumberController.text = currentUser.phoneNumber ?? "";
  birthController.text = currentUser.birth != null ? DateFormat(StringConstants.timeYMDDashFormat).format(currentUser.birth!) : "";
}