关于DART for Java Equivalent,等效类/基元是什么?

时间:2018-08-24 14:48:43

标签: dart

1. Java int[] - integer array
2. Java Object[] - object array
3. Java inputstream - ex: stream received after by listening to TCP - socket
4. Java byte[] - read from file or received as packet from socket via TCP
5. Java char[] 

需要有关DART中等效类/基元的帮助。

1 个答案:

答案 0 :(得分:2)

  1. List<int>。使用List<int>()<int>[]
  2. 创建
  3. List<Object>。使用List<Object>()<Object>[]
  4. 创建
  5. Stream<List<int>>
  6. List<int>。使用List<int>()Uint8List.fromList(<int>[1, 2, 3])
  7. 创建
  8. 与4相同。

另请参阅https://groups.google.com/a/dartlang.org/forum/#!topic/misc/sMEMCGYAYN8