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