indexOrNull method

T? indexOrNull(
  1. int index
)

Implementation

T? indexOrNull(final int index) {
  try {
    return elementAt(index);
  } catch (e) {
    return null;
  }
}