removeCustomErrorTranslation method

void removeCustomErrorTranslation(
  1. String locale,
  2. FormErrorKey key
)

Removes a custom translation for a specific error key and locale.

If the translation doesn't exist, this method does nothing.

Usage:

localizations.removeCustomErrorTranslation('fr', PredefinedFormErrorKey(PredefinedFormErrorType.required));

Implementation

void removeCustomErrorTranslation(String locale, FormErrorKey key) {
  _customTranslations[locale]?.remove(key);
}