overrideLookup method

String overrideLookup()

Implementation

String overrideLookup() => """
String? lookupMessage(
    String? message_str,
    String? locale,
    String? name,
    List<Object>? args,
    String? meaning,
    {MessageIfAbsent? ifAbsent}) {
  String? failedLookup(
      String? message_str, List<Object>? args) {
    // If there's no message_str, then we are an internal lookup, e.g. an
    // embedded plural, and shouldn't fail.
    if (message_str == null) return null;
    throw UnsupportedError(
        "No translation found for message '\$name',\\n"
        "  original text '\$message_str'");
  }
  return super.lookupMessage(message_str, locale, name, args, meaning,
      ifAbsent: ifAbsent ?? failedLookup);
}

""";