loadForm method
Implementation
void loadForm(UContentResponse? p) {
final UContentJson? d = p?.jsonData;
editing = p;
titleController.text = d?.title ?? "";
subTitleController.text = d?.subTitle ?? "";
descriptionController.text = d?.description ?? "";
detail1Controller.text = d?.detail1 ?? "";
detail2Controller.text = d?.detail2 ?? "";
buttonTextController.text = d?.buttonText ?? "";
buttonLinkController.text = d?.buttonLink ?? "";
linkController.text = d?.link ?? "";
orderController.text = d?.order?.toString() ?? "";
instagramController.text = d?.instagram ?? "";
telegramController.text = d?.telegram ?? "";
whatsappController.text = d?.whatsapp ?? "";
phoneController.text = d?.phone ?? "";
tag = (p == null ? null : tagOf(p)) ?? TagContent.aboutUs;
imageBase64 = d?.imageBase64;
iconBase64 = d?.iconBase64;
_disposeRows();
items = <UAdminContentItemForm>[...?d?.items.map(UAdminContentItemForm.new)];
links = <UAdminContentLinkForm>[...?d?.links.map(UAdminContentLinkForm.new)];
}