getErrorText method

String? getErrorText()

gets the localized error text if any

Implementation

String? getErrorText() {
  if (errorText != null) {
    return ValidatorTranslator.message(context, errorText!);
  }
  return null;
}