6
answers
1
watching
185
views

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;
},

For unlimited access to Homework Help, a Homework+ subscription is required.

Avatar image
Liked by dragon2020 and 2 others

Unlock all answers

Get 1 free homework help answer.
Already have an account? Log in
Avatar image
Liked by dragon2020 and 3 others
Already have an account? Log in
Avatar image
Liked by dragon2020 and 1 others
Already have an account? Log in
Avatar image
Liked by dragon2020 and 2 others
Already have an account? Log in
Avatar image
Liked by dragon2020 and 2 others
Already have an account? Log in
Avatar image
Read by 1 person
Already have an account? Log in

Related questions

Related Documents

Weekly leaderboard

Start filling in the gaps now
Log in