The Ultimate Guide to App Development with Flutter : Learning Dart : Conditionals
Conditionals If statements are simply written as follows: bool someCondition = true; if (someCondition) { print('someCondition is true'); } else { print('someCondition is false'); }