l10n method

String l10n(
  1. BuildContext context
)

Implementation

String l10n(BuildContext context) {
  switch (this) {
    case Requirement.atLeast12Character:
      return 'context.l10n.atLeast12Characters';
    case Requirement.oneDigit:
      return 'context.l10n.oneDigit';
    case Requirement.oneSpecialCharacter:
      return 'context.l10n.oneSpecialCharacter';
    case Requirement.oneUppercaseLetter:
      return 'context.l10n.oneUppercaseLetter';
    case Requirement.oneLowercaseLetter:
      return 'context.l10n.oneLowercaseLetter';
    case Requirement.emailAdress:
      return 'context.l10n.emailAdress';
  }
}