resolveMessage method

  1. @override
String? resolveMessage(
  1. String code,
  2. Locale locale
)
override

Resolve a message for the given code and locale.

Subclasses must implement this method to provide the actual message lookup logic. This method should return null if the message is not found for the given locale.

Parameters:

  • code: The message code to resolve
  • locale: The locale to resolve for

Returns the message template or null if not found.

Implementation

@override
String? resolveMessage(String code, Locale locale) => _messages[locale]?[code];