NumberFormat constructor

NumberFormat([
  1. String? newPattern,
  2. String? locale
])

Create a number format that prints using newPattern as it applies in locale.

Implementation

factory NumberFormat([String? newPattern, String? locale]) =>
    NumberFormat._forPattern(locale, (x) => newPattern);