getLanguage static method

String getLanguage(
  1. Language language
)

Implementation

static String getLanguage(Language language) {
  switch (language) {
    case Language.en:
      return 'en';
    case Language.hi:
      return 'hi';
    default:
      return 'en';
  }
}