buildResult static method

String buildResult(
  1. StringResult? result
)

Implementation

static String buildResult(StringResult? result) {
  if (result == null || result.value == null || result.value!.isEmpty) {
    return "";
  }
  String resultString = "";
  if (result.latin != null || result.latin!.isNotEmpty) {
    resultString += "${result.latin} ";
  }

  if (result.arabic != null || result.arabic!.isNotEmpty) {
    resultString += "${result.arabic} ";
  }
  if (result.cyrillic != null || result.cyrillic!.isNotEmpty) {
    resultString += "${result.cyrillic} ";
  }
  if (result.greek != null || result.greek!.isNotEmpty) {
    resultString += "${result.greek} ";
  }
  return resultString;
}