Create a number format that prints using newPattern as it applies in locale.
newPattern
locale
factory NumberFormat([String newPattern, String locale]) => new NumberFormat._forPattern(locale, (x) => newPattern);