setCustomLocaleMessages static method
Sets a customLocale
with the provided customMessages
to be available when using the parse function.
Example:
setLocaleMessages('hi', HindiMessages());
If you want to define locale message implement Messages interface with the desired messages
Implementation
static void setCustomLocaleMessages(
String customLocale,
Messages customMessages,
) {
_messageMap[customLocale] = customMessages;
}