getOrNull method

E? getOrNull(
  1. int index
)

Implementation

E? getOrNull(int index) {
  return (index >= 0 && length > index) ? elementAt(index) : null;
}