getIfAvailable<T> function

T? getIfAvailable<T>(
  1. List<T?> items,
  2. int position
)

Implementation

T? getIfAvailable<T>(List<T?> items, int position){
  if(items.length > position){
    return items[position];
  }
  return null;
}