Loading

Paste #pupgvnkvi

  1. Dart笔记
  2.  
  3. Runes转int
  4. Runes('\n').single
  5. 以上将换行符转换为int值
  6.  
  7.  
  8. Dart处理二进制数据,您可以使用ByteData类:
  9. var buffer = new Uint8List(8).buffer;
  10. var bytes = new ByteData.view(buffer);
  11. bytes.getUint16(offset);
  12.  
  13.  
  14. Dart 并不支持构造函数的重载,而采用了构造方法使用可选类型参数
  15.  
  16. 在构造方法体里初始化final变量是不能编译通过,但通过初始化列表在赋值final字段是ok的
  17.  
  18. Dart文档
  19. https://api.dart.dev/stable/2.7.2/index.html
  20.  
  21.  
  22. https://unicode-table.com

Version history

Revision # Author Created at
pidpjqnpu Anonymous 11 Apr 2020, 09:31:42 UTC Diff
pya0nlp3q Anonymous 11 Apr 2020, 04:33:50 UTC Diff

Comments

粤ICP备13044925号-6