当前位置:网站首页>[fluent] dart data type boolean type (boolean type definition | logical operation)
[fluent] dart data type boolean type (boolean type definition | logical operation)
2022-07-02 16:33:00 【Programmer community】
I . bool The type definition
bool bool_1 = true;bool bool_0 = false;// Print the results : bool_1 : true , bool_0 : falseprint("bool_1 : $bool_1 , bool_0 : $bool_0");II . bool Type logic operation
// 1 . Logic or operation bool bool_2 = bool_0 || bool_1;// 2 . Logic and computation bool bool_3 = bool_0 && bool_1;// Print the results : bool_2 : true , bool_3 : falseprint("bool_2 : $bool_2 , bool_3 : $bool_3");III . Code example
import 'package:flutter/material.dart';class DartType_Bool extends StatefulWidget {
@override _DartType_BoolState createState() => _DartType_BoolState();}class _DartType_BoolState extends State<DartType_Bool> {
@override Widget build(BuildContext context) {
// call Demo Example method _boolDemo(); return Container(child: Text(' Boolean data type '),); } /** * Boolean type code example */ _boolDemo(){
// I . Boolean type definition bool bool_1 = true; bool bool_0 = false; // Print the results : bool_1 : true , bool_0 : false print("bool_1 : $bool_1 , bool_0 : $bool_0"); // II . Logical operations // 1 . Logic or operation bool bool_2 = bool_0 || bool_1; // 2 . Logic and computation bool bool_3 = bool_0 && bool_1; // Print the results : bool_2 : true , bool_3 : false print("bool_2 : $bool_2 , bool_3 : $bool_3"); }}Execution results :
bool_1 : true , bool_0 : falsebool_2 : true , bool_3 : false边栏推荐
- dried food! Understand the structural vulnerability of graph convolution networks
- OSPF - detailed explanation of NSSA area and full NSSA area (including configuration command), LSA type 7 lsa-7
- PCL least median square method fitting plane
- 路由模式:hash和history模式
- unity Hub 登录框变得很窄 无法登录
- Best practices for building multi architecture images
- JS learning notes - variables
- Construction and business practice of Zhongke brain knowledge map platform
- 2022最新最详细必成功的在Vscode中设置背景图、同时解决不受支持的问题
- Sim2real environment configuration tutorial
猜你喜欢

JS learning notes - data types

Route service grid traffic through two-level gateway design

JS learning notes - operators

Practice of traffic recording and playback in vivo

数据安全产业系列沙龙(三)| 数据安全产业标准体系建设主题沙龙

Unity uses ugui to set a simple multi-level horizontal drop-down menu (no code required)

Maui学习之路(三)--Winui3深入探讨

July 1st gift: Yi Jingjie's "hundred day battle" ended perfectly, and the database of Guiyang bank was sealed in advance

手机app通达信添加自定义公式(分时T+0)为例子讲解

微信v3native支付设置的结束时间处理办法
随机推荐
PyC file decompile
Understand the key technology of AGV -- the difference between laser slam and visual slam
Write your own CPU Chapter 11 - learning notes
Text intelligent expansion and contraction control of swiftui text component (tutorial includes source code)
Bib | graph representation based on heterogeneous information network learning to predict drug disease association
618 deep resumption: Haier Zhijia's winning methodology
IDEA中设置背景图片(超详细)
Various entanglements between qvariant and Jason -- QT
Rock PI Development Notes (II): start with rock PI 4B plus (based on Ruixing micro rk3399) board and make system operation
JS learning notes - data types
SQLServer查询哪些索引利用率低
一文读懂AGV的关键技术——激光SLAM与视觉SLAM的区别
注册成为harmonyos开发者并安装DevEco Studio 3.0 Beta2 for HarmonyOS
结构体的内存对齐
Recommended practice sharing of Zhilian recruitment based on Nebula graph
Data security industry series Salon (III) | data security industry standard system construction theme Salon
AWS virtual machine expansion
PCL least median square method fitting plane
自注意力机制和全连接的图卷积网络(GCN)有什么区别联系?
Aujourd'hui dans l'histoire: Alipay lance le paiement par code à barres; La naissance du père du système de partage du temps; La première publicité télévisée au monde...