title: Flutter TextField text not printing to variable?
body: <p>My textfield text for <code>onChanged:</code>  I'm trying to change a variable I've declared in the same class and have it print in a voided function.  Please explain how to print my textfield text.</p>
  
  <pre><code>class LoginPageState extends State&lt;LoginPage&gt; {
    @override
  
    var _email;
    var _password;
    var _username;
  
    final TextEditingController controller = new TextEditingController();
  
  void _loginButton() {
  
      print("Login from Page");
      print(_password);
      print(_username);
      print(_email);
    }
  
  Widget build(BuildContext context) {
      return new Scaffold(
        backgroundColor: Colors.white70,
        appBar: new AppBar(
          backgroundColor: Colors.amber,
          title: new Text("Login / Signup"),
        ),
        body: new Container(
          child: new Center(
            child: new Column(
              mainAxisAlignment: MainAxisAlignment.center,
              children: &lt;Widget&gt;[
                new TextField(
                  controller: controller,
                  decoration:
                  new InputDecoration(labelText: "E M A I L   A D D R E S S"),
                  onChanged: (String newString){
                    setState((){
                      _email = controller.text;
  
                    });
                  },
                ),
  </code></pre>