This commit is contained in:
krahets
2023-06-02 15:07:33 +08:00
parent ab9c107bb7
commit dbdd9551e6
16 changed files with 328 additions and 31 deletions
+5 -1
View File
@@ -137,5 +137,9 @@ comments: true
=== "Dart"
```dart title=""
/* 使用多种「基本数据类型」来初始化「数组」 */
List<int> numbers = List.filled(5, 0);
List<double> decimals = List.filled(5, 0.0);
List<String> characters = List.filled(5, 'a');
List<bool> booleans = List.filled(5, false);
```