getResponsePhrase function

String getResponsePhrase(
  1. String key,
  2. String locale
)

To get the response phrases for a specific language

Implementation

String getResponsePhrase(String key, String locale) {
  return '${responsePhrases[key]![locale]}';
}