I'm new in Flutter. In my app I need option for checking username already exist or not asynchronously from database when user typed and focus out from text box.
The validator
require String
return type that's why I can not add Future<String>
How can I do like as below with Flutter TextFormField
? or any process that full fill my requirement.
validator: myValidator
Future myValidator(String username) async{
return await checkUser(username);
}