当前位置:网站首页>[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边栏推荐
- [5g NR] RRC connection release
- According to the atlas of data security products and services issued by the China Academy of information technology, meichuang technology has achieved full coverage of four major sectors
- 做机器视觉哪个软件好?
- Introduction to database system Chapter 1 short answer questions - how was the final exam?
- (practice C language every day) the sum of the nearest three numbers
- PCL 最小中值平方法拟合平面
- Summary | three coordinate systems in machine vision and their relationships
- Write your own CPU Chapter 11 - learning notes
- [fluent] dart data type number type (DART file creation | num type | int type | double type | num related API)
- By asp Net core downloads files according to the path exception
猜你喜欢

关于mysql安装的一些问题

MySQL min() finds the minimum value under certain conditions, and there are multiple results

Idea public method extraction shortcut key

Pandora IOT development board learning (RT thread) - Experiment 2 RGB LED experiment (learning notes)

Recommended practice sharing of Zhilian recruitment based on Nebula graph

理想之光不灭

数学分析_笔记_第5章:一元微分学

2022 the latest and most detailed will successfully set the background image in vscade and solve unsupported problems at the same time

Today in history: Alipay launched barcode payment; The father of time-sharing system was born; The first TV advertisement in the world

Original God 2.6 server download and installation tutorial
随机推荐
sql解决连续登录问题变形-节假日过滤
分析超700万个研发需求发现,这8门编程语言才是行业最需要的!
2022最新最详细必成功的在Vscode中设置背景图、同时解决不受支持的问题
Bone conduction non ear Bluetooth headset brand, bone conduction Bluetooth headset brand recommendation
Yyds dry goods inventory has not revealed the artifact? Valentine's Day is coming. Please send her a special gift~
Unity Json 编写
MySQL calculates the data within the longitude and latitude range
Dimension table and fact table in data warehouse
AWS virtual machine expansion
What is Amazon keyword index? The consequences of not indexing are serious
中国信通院《数据安全产品与服务图谱》,美创科技实现四大板块全覆盖
图书管理系统(山东农业大学课程设计)
HMS core machine learning service helps zaful users to shop conveniently
由ASP.NET Core根据路径下载文件异常引发的探究
Pandora IOT development board learning (RT thread) - Experiment 2 RGB LED experiment (learning notes)
关于mysql安装的一些问题
绝对真理和相对真理思考
Song of cactus - throwing stones to ask the way (3)
OSPF - detailed explanation of NSSA area and full NSSA area (including configuration command), LSA type 7 lsa-7
原神2.6服务端下载以及搭建安装教程