transliterate static method

String transliterate({
  1. required String source,
})

Method for converting to translit for the source value

Implementation

static String transliterate({required String source}) {
  if (source.isEmpty) return source;

  return source.split('').map((element) {
    return _symbols.containsKey(element) ? _symbols[element]! : element;
  }).join();
}