I\'m just starting to get the hang of Flutter, but I\'m having trouble figuring out how to set the enabled state of a button.
From the docs, it says to set onP
onP
Setting
onPressed: null // disables click
and
onPressed: () => yourFunction() // enables click