getEditorItemByFieldName method

EditorItem? getEditorItemByFieldName(
  1. String fieldName
)

Implementation

EditorItem? getEditorItemByFieldName(String fieldName) {
  EditorItem? editorItem = editorItems.firstWhereOrNull(
    (element) => element.fieldName == fieldName,
  );
  return editorItem;
}