item static method
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;
}