ParseFailureMessageProvider typedef

ParseFailureMessageProvider = String Function(String?, FormatException?, Locale)

A function which returns localized, user friendly message for parse or tryParse failure from specified input String and Locale.

Locale can be used to parse value from form field which might be localized.

Implementation

typedef ParseFailureMessageProvider = String Function(
  String?,
  FormatException?,
  Locale,
);