decimal method

void decimal(
  1. String name,
  2. double value
)

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());
}