getItem method

T? getItem(
  1. int index
)

Implementation

T? getItem(int index) => size > 0 && size > index ? items[index] : null;