插入符号在Dart中做什么 [英] what does Caret sign do in Dart

查看:71
本文介绍了插入符号在Dart中做什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在看一些Flutter项目,并且注意到以下代码:

I am looking at some Flutter projects and I notice this codes:

  @override
  int get hashCode => todos.hashCode ^ isLoading.hashCode;

此^符号在做什么?在Flutter项目的AppState中可以找到此代码行。

What is this ^ sign doing here? This line of code is found in the AppState of Flutter projects. Is this used to compare the before and after State?

推荐答案

它是按位XOR运算符

https://www.dartlang.org/guides / language / language-tour#operators

这篇关于插入符号在Dart中做什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆