Defining a class for the app’s localized resources

Putting together an internationalized Flutter app usually
starts with the class that encapsulates the app’s localized values.
The example that follows is typical of such classes.

Complete source code for the intl_example for this app.

This example is based on the APIs and tools provided by the
intl package.
An alternative class for the app’s localized resources
describes an example that doesn’t depend on the intl package.

The DemoLocalizations class defined below
contains the app’s strings (just one for the example)
translated into the locales that the app supports.
It uses the initializeMessages() function
generated by Dart’s intl package,
Intl.message(), to look them up.

intl tool
that analyzes the source code for classes that contain

Adding support for a new language