tryToIntFormatted method

int? tryToIntFormatted(
  1. String format,
  2. String? locale
)

Attempts toIntFormatted, returning null on failure.

Implementation

int? tryToIntFormatted(String format, String? locale) =>
    tryToNumFormatted(format, locale)?.toInt();