Skip to content

Instantly share code, notes, and snippets.

@faizan1947
Created July 21, 2022 11:45
Show Gist options
  • Save faizan1947/f34b226855e58459665b62c9c2de91e2 to your computer and use it in GitHub Desktop.
Save faizan1947/f34b226855e58459665b62c9c2de91e2 to your computer and use it in GitHub Desktop.
ternary
void main() {
int age = 123;
bool canBuySharab = age>21? true: false;
print(canBuySharab);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment