
上QQ阅读APP看书,第一时间看更新
Logical operators
Logical operators in Dart are the common operators applied to bool operands; they can be variables, expressions, or conditions. Additionally, they can be combined with complex expressions by combining the results of the expressions. The provided logical operators are as follows:
- !expression: To negate the result of an expression, that is, true to false and false to true
- ||: To apply logical OR between two expressions
- &&: To apply logical AND between two expressions