compareAtSign method
returns true if atsign1
& atsign2
are same
Implementation
bool compareAtSign(String atsign1, String atsign2) {
if (atsign1[0] != '@') {
atsign1 = '@$atsign1';
}
if (atsign2[0] != '@') {
atsign2 = '@$atsign2';
}
return atsign1.toLowerCase() == atsign2.toLowerCase() ? true : false;
}