atOrNull method
- return element by index
- return
null
if index out of range
Implementation
T? atOrNull(int index) => length - 1 >= index ? elementAt(index) : null;
null
if index out of rangeT? atOrNull(int index) => length - 1 >= index ? elementAt(index) : null;