feat: modify some Dart codes and add Dart code blocks to the docs (#543)

This commit is contained in:
liuyuxin
2023-06-02 14:56:29 +08:00
committed by GitHub
parent 53e18bc6d6
commit 281c0c618a
25 changed files with 339 additions and 54 deletions
+2 -1
View File
@@ -34,7 +34,8 @@ void main() {
print("\n遍历键值对 Key->Value");
map.forEach((key, value) => print("$key -> $value"));
print("\n单独遍历键 Key");
map.forEach((key, value) => print("$key"));
map.keys.forEach((key) => print(key));
print("\n单独遍历值 Value");
map.forEach((key, value) => print("$value"));
map.values.forEach((value) => print(value));
}