get<T extends Object> method

T? get<T extends Object>(
  1. int index
)

Implementation

T? get<T extends Object>(int index) {
  if (index >= 0 && index < _data.length) {
    dynamic obj = _data[index];
    if (obj is T) {
      return obj;
    }
  }

  return null;
}