asDoubleOrNull method
Returns the picked value as double? or returns null
when the picked
value is absent
Parses the picked value as double. Also tries to parse String as double via double.tryParse
Implementation
double? asDoubleOrNull() {
if (value == null) return null;
try {
return _parse();
} catch (_) {
return null;
}
}