# getMessage abstract method

String getMessage(

1. String code, {
2. List<Object>? args,
3. Locale? locale,
4. String? defaultMessage,

})
inherited

Retrieve a message for the given code.

Parameters:

- `code`: The message code to look up
- `args`: Optional arguments for placeholder substitution
- `locale`: Optional locale for message resolution

Returns the resolved message string, or the code itself if not found.

Example:

    // Simple message
    final msg1 = getMessage('hello'); // "Hello"

    // Message with parameters
    final msg2 = getMessage('welcome', args: ['Alice']); // "Welcome Alice!"

    // Message for specific locale
    final msg3 = getMessage('hello', locale: Locale('es')); // "Hola"

## Implementation

    String getMessage(String code, {List<Object>? args, Locale? locale, String? defaultMessage});