array method Null safety
- int index
Returns the element at the given index
as an Array.
Returns null
if the element is not a of the expected typ or it is
null
.
Throws a RangeError if the index
is ouf of range.
Implementation
Array? array(int index);