Parser<P extends Object> typedef

A function which converts String to property value P.

Locale can be used to localize for form field.

Implementation

typedef Parser<P extends Object> = SomeConversionResult<P> Function(
  String?,
  Locale,
  ParseFailureMessageProvider,
);