6
answers
1
watching
185
views
dragon2020Lv1
16 Jan 2023
How to fix the error message -
The operator '<' can't be unconditionally invoked because the receiver can't be 'null' Try adding null check. Screenshot and original code listed below. When I added null check if (invalue?.length! <10 ) did not resolve the issue.
validator: (String? inValue) {
if (inValue?.length < 10) {
return "Password must be >=10 in length";
}
return null;
},
How to fix the error message -
The operator '<' can't be unconditionally invoked because the receiver can't be 'null' Try adding null check. Screenshot and original code listed below. When I added null check if (invalue?.length! <10 ) did not resolve the issue.
validator: (String? inValue) {
if (inValue?.length < 10) {
return "Password must be >=10 in length";
}
return null;
},
Liked by dragon2020 and 2 others
Liked by dragon2020 and 3 others
17 Jan 2023
Already have an account? Log in
Liked by dragon2020 and 1 others
17 Jan 2023
Already have an account? Log in
Liked by dragon2020 and 2 others
17 Jan 2023
Already have an account? Log in
Liked by dragon2020 and 2 others
imranshkh84Lv8
16 Jan 2023
Already have an account? Log in
Read by 1 person