getTranslation method

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

Get translation by message id and context

Implementation

Translation? getTranslation(String msgctxt, String msgid) {
  if (this.contexts[msgctxt] == null) {
    return null;
  }

  return this.contexts[msgctxt]![msgid];
}