toNumFormatted method

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

Parses the string to a number with the given newPattern and locale.

Implementation

num toNumFormatted([String? newPattern, String? locale]) =>
    NumberFormat(newPattern, locale).parse(this);