Parses the string to a number with the given newPattern and locale.
newPattern
locale
num toNumFormatted([String? newPattern, String? locale]) => NumberFormat(newPattern, locale).parse(this);