elementAtOrNull method
Safely returns the element at index, or null if out of range.
Implementation
T? elementAtOrNull({required int index}) =>
(index >= 0 && index < length) ? this[index] : null;
Safely returns the element at index, or null if out of range.
T? elementAtOrNull({required int index}) =>
(index >= 0 && index < length) ? this[index] : null;