此属性返回列表中的第一个元素。
List.first
void main() { var lst=new List(); lst.add(12); lst.add(13); print("The first element of the list is: ${lst.first}"); }
它将产生以下输出-。
来源:LearnFk无涯教程网
The first element of the list is: 12
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)