NumericFormatterUtils class

Helper utilities for formatting and parsing grouped numbers.

Constructors

NumericFormatterUtils()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

formatIntegerPart(String digits, NumberGroupingSystem system) → String
Formats an unformatted integer digit string according to NumberGroupingSystem.
formatNumberString(String raw, {required NumberGroupingSystem groupingSystem, required bool allowDecimals, int? decimalPlaces, required bool allowNegative}) → String
Formats a full numeric string with grouping, decimals, and negative sign.
parse(String text) → num?
Parses a formatted string back to a numeric value.