overrideLookup property

String overrideLookup
getter/setter pair

Implementation

String overrideLookup = """
@override
String? lookupMessage(
    String? messageText,
    String? locale,
    String? name,
    List<Object>? args,
    String? meaning,
    {MessageIfAbsent? ifAbsent}) {
  MessageIfAbsent 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 '';
    throw UnsupportedError(
        "No translation found for message '\$name',\\n"
            "  original text '\$message_str'");
  };
  return super.lookupMessage(messageText, locale, name, args, meaning,
      ifAbsent: ifAbsent ?? failedLookup);
}

""";