Decimal128.parse constructor

Decimal128.parse(
  1. String source
)

Parses a string into a Decimal128. Throws a FormatException if the string is not a valid Decimal128.

Implementation

factory Decimal128.parse(String source) {
  return tryParse(source) ?? (throw FormatException('Invalid Decimal128', source));
}