number method Null safety
- int index
Returns the element at the given index
as a num.
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
num? number(int index);