getErrorMsg static method

dynamic getErrorMsg({
  1. String language = "zh",
})

Implementation

static getErrorMsg({String language = "zh"}) {
  switch (language) {
    case "zh":
      textDelegate = const VFBaseTextDelegate();
      break;
    case "ja":
      textDelegate = const VFJapaneseTextDelegate();
      break;
    case "fr":
      textDelegate = const VFFrenchTextDelegate();
      break;
    case "ko":
      textDelegate = const VFKoreanTextDelegate();
      break;
    default:
      textDelegate = const VFEnglishTextDelegate();
      break;
  }
}