decimal method
Writes a finite double path parameter.
Implementation
void decimal(String name, double value) {
if (!value.isFinite) {
throw ParameterFormatException(
'Path parameter "$name" must be a finite number.',
source: value,
);
}
string(name, value.toString());
}