XPathDouble.parse constructor
Parses text into an XPathDouble of optional type, throwing a
FormatException if invalid.
Implementation
factory parse(String text, [XPathType type = xsDouble]) =>
tryParse(text, type) ??
(throw FormatException('Invalid float/double: "$text"'));