  new FlatButton(               child: new Text(                 'SEND EMAIL', style: TextStyle(color: Colors.black),),               onPressed: () {                 setState(() {                   _sendResetEmail();                 });  void _sendResetEmail() {     final resetEmailController = TextEditingController();     resetEmail = resetEmailController.text;      if (_resetKey.currentState.validate()) {       _resetKey.currentState.save();        try {         Fluttertoast.showToast(             msg: "Sending password-reset email to: $resetEmail",             toastLength: Toast.LENGTH_LONG,             bgcolor: "#e00c0c",             textcolor: '#ffffff',             timeInSecForIos: 0);          _auth.sendPasswordResetEmail(email: resetEmail);       } catch (exception) {         print(exception);          Fluttertoast.showToast(             msg: "${exception.toString()}",             toastLength: Toast.LENGTH_LONG,             bgcolor: "#e00c0c",             textcolor: '#ffffff',             timeInSecForIos: 0);       }     }     else {       setState(() {         _validate = true;       });     }   }  