@@ -119,8 +119,8 @@ class EmailValidator {
119119
120120 _index++ ;
121121
122- while (
123- _index < text.length && _isDomain (text[_index], allowInternational)) {
122+ while (_index < text.length &&
123+ _isDomain (text[_index], allowInternational)) {
124124 _index++ ;
125125 }
126126
@@ -135,7 +135,10 @@ class EmailValidator {
135135 // Skips checking of domain if domainType is numeric and returns false
136136 // Otherwise, return true
137137 static bool _skipDomain (
138- String text, bool allowTopLevelDomains, bool allowInternational) {
138+ String text,
139+ bool allowTopLevelDomains,
140+ bool allowInternational,
141+ ) {
139142 if (! _skipSubDomain (text, allowInternational)) {
140143 return false ;
141144 }
@@ -328,8 +331,11 @@ class EmailValidator {
328331 /// If [allowInternational] is `true` , then the validator
329332 /// will use the newer International Email standards for validating
330333 /// the email address.
331- static bool validate (String email,
332- [bool allowTopLevelDomains = false , bool allowInternational = true ]) {
334+ static bool validate (
335+ String email, [
336+ bool allowTopLevelDomains = false ,
337+ bool allowInternational = true ,
338+ ]) {
333339 _index = 0 ;
334340
335341 if (email.isEmpty || email.length >= 255 ) {
0 commit comments