Display API validation errors in Flutter TextFormField by storing the message in a state variable and binding it to the errorText property.