I am trying to implement value of a simple int variable which hold user age. By clicking on buttons user can increase or decrease the value.
I want to know if there is an easy way dart to prevent user from passing negative value to the variable.
Thanks