跳转至

Dart 条件判断

1
2
3
if(condition) {
    // process if condition == true
}
1
2
3
4
5
if(condition) {
    // process if condition == true
} else {
    // process if condition == false
}