loadForm method
Implementation
Future<void> loadForm(UBlogResponse? b) async {
editing = b;
titleController.text = b?.title ?? "";
subtitleController.text = b?.subtitle ?? "";
slugController.text = b?.slug ?? "";
contentController.text = b?.content ?? "";
selectedCategories = <UCategoryResponse>[...?b?.categories];
files = <UFileData>[];
categories = (await UServices.category.read(p: UCategoryReadParams(pageSize: 200))).$1?.result ?? <UCategoryResponse>[];
}