Dart & data type(static / dynamic)

Darts 飞镖

标枪 javelin/darts

type

https://dartpad.dartlang.org/

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 发布文章使用:只允许注册用户才可以访问!


最新文章

  1. java 学习框架
  2. git查看一个文件的历史记录
  3. label swift
  4. C++为什么不支持某些东西
  5. Servlet能读到JSessionID,读不到其它cookie问题
  6. hdu 4720
  7. 测试 ASP.NET Core API Controller
  8. 适配器模式-Adapter(Java实现)
  9. Linux定时任务调用sh文件
  10. struts.xml,报错 1 c.opensymphony.xwork2.util.DomHelper
  11. Linux 查看本机串口方法
  12. Android ThreadPool
  13. Python 创建XML
  14. Spring技术内幕_IOC容器载入Bean定义资源文件
  15. Eclipse SQLExplorer插件的安装和使用
  16. 自然语言交流系统 phxnet团队 创新实训 项目博客 (七)
  17. 学以致用 ---- vue子组件→父组件通信
  18. 网络流——poj1273(入门)
  19. LeetCode the longest palindrome substring
  20. go 中的pacage 名称 和import {}中的名称

热门文章

  1. 纯手工撸一个vue框架
  2. Building a high performance JSON parser
  3. Scalable Go Scheduler Design Doc
  4. Power of Two Choices 负载均衡
  5. your service shouldn’t know anything about HTTP headers, or gRPC error codes 干净架构 服务不应知道 HTTP头、gRPC错误码 服务仅知道服务相关的
  6. Spring框架入门浅析
  7. loj黑暗城堡
  8. POJ2961_kmp
  9. 剖析 CopyOnWriteArrayList
  10. 利用powershell隐藏执行后门