lastIndex property

int get lastIndex

返回列表最后位置的索引

Implementation

int get lastIndex => length - 1;