File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed
core/lib/src/domain/entities Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -46,10 +46,13 @@ class InputValidator extends Equatable implements ApiObject {
4646 }
4747
4848 /// Validator with type [InputType.email] .
49- InputValidator .email ({String ? regex, bool ? isObscured}) {
49+ InputValidator .email ({
50+ String ? regex,
51+ bool ? isObscured,
52+ }) {
5053 type = InputType .email;
5154 _regex = regex ?? ValidatorRegexes .email;
52- isObscured = isObscured ?? true ;
55+ this . isObscured = isObscured ?? true ;
5356 }
5457
5558 /// Validator for with type [InputType.password] .
@@ -94,19 +97,13 @@ class InputValidator extends Equatable implements ApiObject {
9497 case InputType .date:
9598 return InputValidator .date (regex: regex, isObscured: isObscured);
9699 case InputType .email:
97- return InputValidator .email ();
100+ return InputValidator .email (regex : regex, isObscured : isObscured );
98101 case InputType .phone:
99102 return InputValidator .phone (regex: regex, isObscured: isObscured);
100103 case InputType .number:
101- return InputValidator .number (
102- regex: regex,
103- isObscured: isObscured,
104- );
104+ return InputValidator .number (regex: regex, isObscured: isObscured);
105105 case InputType .password:
106- return InputValidator .password (
107- regex: regex,
108- isObscured: isObscured,
109- );
106+ return InputValidator .password (regex: regex, isObscured: isObscured);
110107 }
111108 }
112109
You can’t perform that action at this time.
0 commit comments