parseWith<R, P extends NumberParserBase<R>> method

R parseWith<R, P extends NumberParserBase<R>>(
  1. P parserGenerator(
    1. NumberFormat,
    2. String
    ),
  2. String text
)

Parse the number represented by the string using the parser created by the supplied parser generator. If it's not parseable, throws a FormatException.

Implementation

R parseWith<R, P extends NumberParserBase<R>>(
        P Function(NumberFormat, String) parserGenerator, String text) =>
    parserGenerator(this, text).value!;