consonantNameDigit method
Return a name in digits only for consonants (include 'y') using Pythagorean Numerology table.
ex: 'John'-> '185'
Space will be ignore
ex: 'John Lennon' -> '185 3555'
Implementation
String consonantNameDigit(String fullBirthName) {
assert(fullBirthName.isNotEmpty);
final convertedString = fullBirthName.toLowerCase().split("").map((e) {
if (consonantsWithY.contains(e))
return pythagoreanNumerologyTable[e];
else if (e == " ")
return e;
else
return "";
}).join("");
return convertedString;
}