getOrNull<T> method

T? getOrNull<T>(
  1. int position
)

Implementation

T? getOrNull<T>(int position){
  if(this.isNullOrEmpty()) return null;
  if(this!.length > position) return this![position];
  return null;
}