convert static method

String convert(
  1. String text, {
  2. bool live = false,
})

Converts specifies text into nepali literals.

if live is true, texts will convert in live manner. i.e. as you go on typing Default for live is false.

Implementation

static String convert(String text, {bool live = false}) {
  if (live) {
    return _unicode(text);
  }
  _text = '';
  for (var index = 0; index < text.length; index++) {
    if (index == 0) {
      _text = _unicode(text[0]);
    } else {
      _text = _unicode(_text + text[index]);
    }
  }
  return _text;
}