Given boolean value completed = false
how do I flip it back and forth? I could of course do something like this:
if (completed) {
completed = false
} else {
completed = true
}
But that feels hacky and too long. Is there any slick and cleaner way of doing this? Thanks.