asDouble method
Decode value to double.
Implementation
double asDouble() {
final value = _value;
if (value != null) {
final String strValue = const Utf8Codec().decode(value);
final double doubleValue =
double.tryParse(strValue) ?? defaultValueForDouble;
return doubleValue;
} else {
return defaultValueForDouble;
}
}