getText method

String getText(
  1. String fieldName
)

Implementation

String getText(String fieldName) {
  final editorItem = getEditorItemByFieldName(fieldName);

  if (dataEntity[fieldName] == null) return '';

  if (editorItem?.type == EEditorType.money) {
    return PriceInputFormatter.format(
      (dataEntity[fieldName] as double).toInt().toString(),
    );
  }

  return dataEntity[fieldName].toString();
}