elementAt function

dynamic elementAt(
  1. Object list,
  2. int index
)

List Item

Implementation

dynamic elementAt(Object list, int index) => (list is List &&
        list.isNotEmpty &&
        !index.isNegative &&
        index < list.length)
    ? list[index]
    : null;