Question for Practice
- Write a program in a dart to create an age variable and assign a
null
value to it using ?. - Write a function named
generateRandom()
in dart that randomly returns 100 ornull
. Also, assign a return value of the function to a variable named status that canβt benull
. Give status a default value of 0, ifgenerateRandom()
function returnsnull
.