NRBNumberFormatter class

A utility class for parsing and formatting numeric values into localized strings.

NRBNumberFormatter handles raw inputs (Strings or numbers), removes existing formatting, applies rounding logic, and reconstructs the number with the requested digit grouping style (Indian or International).

Constructors

NRBNumberFormatter()

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

format(dynamic input, {NumberStyle style = NumberStyle.international, RoundMode roundMode = RoundMode.withRoundUp, int roundTo = 0}) String
Formats the input into a styled numeric string.