tryGetDouble method

double? tryGetDouble(
  1. int index, {
  2. List<int>? alternativeIndices,
  3. dynamic innerMapKey,
  4. int? innerIndex,
  5. String? format,
  6. String? locale,
  7. double? defaultValue,
  8. ElementConverter<double>? converter,
})

Tries to convert the element at index (or fallback indices) to double.

Implementation

double? tryGetDouble(
  int index, {
  List<int>? alternativeIndices,
  dynamic innerMapKey,
  int? innerIndex,
  String? format,
  String? locale,
  double? defaultValue,
  ElementConverter<double>? converter,
}) => ConvertObjectImpl.tryToDouble(
  _firstForIndices(index, alternativeIndices: alternativeIndices),
  mapKey: innerMapKey,
  listIndex: innerIndex,
  format: format,
  locale: locale,
  defaultValue: defaultValue,
  converter: converter,
  debugInfo: {
    'index': index,
    if (alternativeIndices != null && alternativeIndices.isNotEmpty)
      'altIndexes': alternativeIndices,
  },
);