get method
Returns the index
th element.
If that index doesn't exist (negative, or out of range), will return
the result of calling orElse
. In this case, if orElse
is not provided,
will throw an error.
Implementation
T get(int index, {T Function(int index)? orElse}) {
if (orElse == null) return _l[index];
return (index < 0 || index >= _l.length) //
? orElse(index)
: _l[index];
}