letDoubleOrNull function
Let's you convert input
to a double type if possible, or returns null
if
the conversion cannot be performed.
Implementation
@pragma('vm:prefer-inline')
double? letDoubleOrNull(dynamic input) => letNumOrNull(input)?.toDouble();