Dart & data type(static / dynamic)
2024-10-20 16:41:29
Dart & data type(static / dynamic)
Darts 飞镖
标枪 javelin/darts
type
void main() {
// abstract class String implements Comparable<String>, Pattern
String s = "string type";
print(s);
// String s
// Number n = 123;
// Error: 'Number' isn't a type.
int i = 123;
// Number, int i
print(i);
double d = 3.1415926;
// Number, double d
print(d);
}
live demo
https://gist.github.com/xgqfrms/a912f29d6d79f674f3ba8c6d65686f68
https://dartpad.dev/a912f29d6d79f674f3ba8c6d65686f68
fallback link
https://gist.github.com/xgqfrms/a912f29d6d79f674f3ba8c6d65686f68
iframe
<iframe height="435" style="width: 100%;" scrolling="no" title="dart data type " src="https://dartpad.dev/a912f29d6d79f674f3ba8c6d65686f68" frameborder="no" allowtransparency="true" allowfullscreen="true">
fallback link
<a hfre="https://gist.github.com/xgqfrms/a912f29d6d79f674f3ba8c6d65686f68">https://gist.github.com/xgqfrms/a912f29d6d79f674f3ba8c6d65686f68</a>
</iframe>
https://github.com/dart-lang/dart-pad/wiki/Sharing-Guide
gist id => DartPad url
https://gist.github.com/xgqfrms/2ada2477a76d65cbd4b16558131fcbc0
https://dartpad.dev/2ada2477a76d65cbd4b16558131fcbc0
refs
https://medium.com/run-dart/dart-dartlang-introduction-variables-and-data-types-d269ea7d1f8f
xgqfrms 2012-2020
www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!
最新文章
- java 学习框架
- git查看一个文件的历史记录
- label swift
- C++为什么不支持某些东西
- Servlet能读到JSessionID,读不到其它cookie问题
- hdu 4720
- 测试 ASP.NET Core API Controller
- 适配器模式-Adapter(Java实现)
- Linux定时任务调用sh文件
- struts.xml,报错 1 c.opensymphony.xwork2.util.DomHelper
- Linux 查看本机串口方法
- Android ThreadPool
- Python 创建XML
- Spring技术内幕_IOC容器载入Bean定义资源文件
- Eclipse SQLExplorer插件的安装和使用
- 自然语言交流系统 phxnet团队 创新实训 项目博客 (七)
- 学以致用 ---- vue子组件→父组件通信
- 网络流——poj1273(入门)
- LeetCode the longest palindrome substring
- go 中的pacage 名称 和import {}中的名称
热门文章
- 纯手工撸一个vue框架
- Building a high performance JSON parser
- Scalable Go Scheduler Design Doc
- Power of Two Choices 负载均衡
- your service shouldn’t know anything about HTTP headers, or gRPC error codes 干净架构 服务不应知道 HTTP头、gRPC错误码 服务仅知道服务相关的
- Spring框架入门浅析
- loj黑暗城堡
- POJ2961_kmp
- 剖析 CopyOnWriteArrayList
- 利用powershell隐藏执行后门