nameInDigit method
Return a name in digits using Pythagorean Numerology table.
ex: 'John'-> '1685'
Space will be ignore
ex: 'John Lennon' -> '1685 355565'
Implementation
String nameInDigit(String fullBirthName) {
assert(fullBirthName.isNotEmpty);
final convertedString = fullBirthName
.toLowerCase()
.split("")
.map((e) {
if (e != " ")
return pythagoreanNumerologyTable[e];
else
return e;
})
.toList()
.join("");
return convertedString;
}