@@ -93,7 +93,7 @@ class MongolCode {
9393 }
9494
9595 String unicodeToMenksoftSameIndex (String inputString) {
96- if (inputString == null || inputString .isEmpty) return '' ;
96+ if (inputString.isEmpty) return '' ;
9797
9898 final outputString = StringBuffer ();
9999 final mongolWord = StringBuffer ();
@@ -142,7 +142,7 @@ class MongolCode {
142142 }
143143
144144 String menksoftToUnicode (String inputString) {
145- if (inputString == null || inputString .isEmpty) return '' ;
145+ if (inputString.isEmpty) return '' ;
146146
147147 final outputString = StringBuffer ();
148148 final menksoftWord = StringBuffer ();
@@ -187,11 +187,6 @@ class MongolCode {
187187 }
188188
189189 static Location getLocation (String textBefore, String textAfter) {
190- // TODO should we be using this in convertWordToMenksoftCode?
191-
192- textBefore ?? = '' ;
193- textAfter ?? = '' ;
194-
195190 var beforeIsMongolian = false ;
196191 var afterIsMongolian = false ;
197192
@@ -356,7 +351,7 @@ class MongolCode {
356351 // Starts at the end of the word and works up
357352 // if mixed genders only reports the first one from the bottom
358353 // returns null if word does not end in a valid Mongolian character
359- static Gender getWordGender (String word) {
354+ static Gender ? getWordGender (String word) {
360355 return MongolWord .getGender (word);
361356 }
362357}
0 commit comments