Dart编程实例 - 更新列表
本文为大家分享 Dart编程实例 - 更新列表 的具体示例代码,提供大家参考,具体内容如下:
void main() { List l = [1, 2, 3,4,5,6,7,8,9]; print('The value of list before replacing ${l}'); l.replaceRange(0,3,[11,23,24]); print('The value of list after replacing the items between the range [0-3] is ${l}'); }