icon method
Returns the icon for this login method. This is useful only in the developer tools or UI.
Implementation
IconData icon() {
return switch (this) {
LoginMethod.anonymous => Icons.person,
LoginMethod.emailPassword => Icons.email,
LoginMethod.phoneOtp => Icons.phone,
LoginMethod.emailLink => Icons.link,
LoginMethod.google ||
LoginMethod.facebook ||
LoginMethod.apple ||
LoginMethod.twitter ||
LoginMethod.github ||
LoginMethod.linkedin ||
LoginMethod.microsoft =>
Icons.shield_outlined,
_ => Icons.help,
};
}