phoneSubmition function

void phoneSubmition(
  1. TextEditingController myController
)

Implementation

void phoneSubmition(TextEditingController myController) async {
  final SharedPreferences sharedPreferences =
      await SharedPreferences.getInstance();
  final SharedPreferences prefs = sharedPreferences;
  final countryCode = prefs.getString("CountryCode") ?? '';
  myController.text = "$countryCode${myController.text}";
}