asDoubleOrThrow method

double asDoubleOrThrow()

Returns the picked value as double or throws

Parses the picked value as double. Also tries to parse String as double via double.tryParse

Implementation

double asDoubleOrThrow() {
  withContext(
    requiredPickErrorHintKey,
    'Use asDoubleOrNull() when the value may be null/absent at some point (double?).',
  );
  return _parse();
}