getAt method

double? getAt(
  1. int index
)

Implementation

double? getAt(int index) {
  if (index < array.length) {
    return array[index].toDouble();
  } else {
    return null;
  }
}