on Saturday, 25th of July, 2020
Logical operators in Dart as similar to most languages. They can be used to combine or invert boolean expressions.
bool isSnowing = true; bool isRaining = false; assert(!isRaining); // true assert(isSnowing || isRaining); // true because at least one is true assert(isSnowing && !isRaining); // true because both are true
- previous: Ternary Conditional operator