getText static method

String getText(
  1. String key
)

Get the text from the current language.

Implementation

static String getText(String key) {
  return currentLanguage[key] ?? "";
}