Dart 基础2 ——List常用的属性和方法 涅槃的小狮子 2022-04-12 90 阅读1分钟 常用属性 length reversed isEmpty isNotEmpty ** toList方法可以让其他类型转换为list 常用方法 add 增加一个 addAll 增加多个 indexOf 查找,传入具体值 remove 删除,传入具体值 removeAt 删除,传入索引值 fillRange 修改 insert(index, value) 指定位置插入 insertAll(index. list) 指定位置插入list join list转字符串 split 字符串转list