getTranslation method

Translation? getTranslation(
  1. String msgctxt,
  2. String msgid
)

Get translation by message id and context

Implementation

Translation? getTranslation(String msgctxt, String msgid) {
  return contexts[msgctxt]?[msgid];
}