onInit method
Called immediately after the widget is allocated in memory. You might use this to initialize something for the controller.
Implementation
@override
void onInit() {
super.onInit();
translationLanguage(Get.arguments as String);
loadAsset().then((value) {
mainLanguageList.addAll(value);
languageList(value);
});
focusNode.addListener(() {
if (focusNode.hasFocus) {
isSearching = true;
}
});
}