getDouble method

double getDouble(
  1. K key, {
  2. List<K>? alternativeKeys,
  3. dynamic innerKey,
  4. int? innerListIndex,
  5. double? defaultValue,
  6. String? format,
  7. String? locale,
  8. ElementConverter<double>? converter,
})

Converts the value at key (or alternativeKeys) to double.

Implementation

double getDouble(
  K key, {
  List<K>? alternativeKeys,
  dynamic innerKey,
  int? innerListIndex,
  double? defaultValue,
  String? format,
  String? locale,
  ElementConverter<double>? converter,
}) => ConvertObjectImpl.toDouble(
  _firstValueForKeys(key, alternativeKeys: alternativeKeys),
  mapKey: innerKey,
  listIndex: innerListIndex,
  defaultValue: defaultValue,
  format: format,
  locale: locale,
  converter: converter,
  debugInfo: {
    'key': key,
    if (alternativeKeys != null && alternativeKeys.isNotEmpty)
      'altKeys': alternativeKeys,
  },
);