services/crud_editor_selector
library
Classes
-
SelectCache
-
Simple in-memory cache for select options
Functions
-
buildDescription(Map<String, dynamic> option, List fieldArray)
→ String
-
Generic function to build description from multiple fields
-
buildSelectTableDescriptionMap(List rows, Map<String, dynamic> currentObj)
→ Map<String, dynamic>
-
Builds an id -> description map from related-table rows for a
select_table field, honoring description_fields / separator /
related_key attributes.
-
genericSelectDataPopulator({required String dbApiUrl, required String selectName, Map<String, dynamic>? dbFilter, List descriptionFields = const ["name"], String titleFieldName = "title", String valueFieldName = "value", String keyName = "_id"})
→ Future<Map<String, dynamic>>
-
Helper for select data populator
-
genericSelectGenerator({required String dbApiUrl, required String selectName, dynamic filter, Map<String, dynamic>? dbFilter, bool showDescription = false, List descriptionFields = const ["name"]})
→ Future
-
Generic select generator that mimics the React version
-
getSelectDescription({required Map<String, dynamic> currentObj, required Map<String, dynamic> dbRow, required Map<String, dynamic> constants, required Map<String, dynamic> selectFieldsOptionsPromises})
→ dynamic
-
Returns the description for a selected value in a CRUD editor