tryGetNum method
Tries to convert the value at key (or alternativeKeys) to num.
Implementation
num? tryGetNum(
K key, {
List<K>? alternativeKeys,
dynamic innerKey,
int? innerListIndex,
num? defaultValue,
String? format,
String? locale,
ElementConverter<num>? converter,
}) => ConvertObjectImpl.tryToNum(
_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,
},
);