of method

E? of(
  1. int index
)

Returns the element at index or null if out of bounds or null.

Implementation

E? of(int index) {
  if (isNotEmptyOrNull && index >= 0 && this!.length > index) {
    return this!.elementAt(index);
  }
  return null;
}