NepaliUnicode class

Production-ready Romanized Nepali (English literal) to Nepali Unicode converter.

Converts phonetic Romanized Nepali strings into clean Nepali Devanagari Unicode.

Examples

final nepali = NepaliUnicode.convert(
  "namaste, tpaaii'laaii kasto chha? swagatam!",
);
// Returns: 'नमस्ते, तपाईंलाई कस्तो छ? स्वगतम्!'

Live (Type-as-you-write) Mode

When typing interactively inside a TextField, use live: true:

TextField(
  onChanged: (text) {
    final liveNepali = NepaliUnicode.convert(text, live: true);
  },
);

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

convert(String text, {bool live = false}) → String
Converts the given Romanized Nepali text into Nepali Unicode.