1-3. bool型(真偽値)

真偽値は bool 型で、truefalse のみです。

基本的な使い方

main.dart
void main() {
  bool ok = true;
  bool ng = false;
  print(ok && !ng);  // true
}