translate static method

String translate(
  1. TextValidationRule rule
)

Implementation

static String translate(
  TextValidationRule rule,
) =>
    _map[rule.runtimeType.toString()] == null
        ? rule.toString()
        : _map[rule.runtimeType.toString()]!(rule);