item static method

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

List Item

Implementation

static dynamic item(Object list, int index) {
  if (list is List) {
    if ((list.isEmpty) || (index.isNegative) || (index >= list.length)) {
      return null;
    }
    return list[index];
  }
  return null;
}