toMail static method
Converts prefix, suffix, and type to a formatted email address.
Example: ('john.doe', 'example', 'com') -> 'john.doe@example.com'
Implementation
static String? toMail(
String prefix,
String suffix, [
String type = "com",
]) {
final String mail = "$prefix@$suffix.$type";
return Validator.isValidEmail(mail) ? mail : null;
}