skip to Main Content

Error occurrence while trying to validate form : unhandled exception:Null check operator used on null value – Flutter

ElevatedButton( onPressed: () async { if (_formKey.currentState!.validate()) { try { final newUser = await _auth.createUserWithEmailAndPassword( email: email.text, password: password.text); if (newUser != null) { Navigator.push( context, MaterialPageRoute( builder: (context) => DashboardScreen(), )); } setState(() {}); } catch (e) { print(e);…

VIEW QUESTION

API How to filter item in Flutter?

Response from API: "loan": [ { "id": "612", "icbsid": "55", "loanId": "null", "loanAcctNo": "001-063-06881-1", "productId": "4", "productName": "Fixed Principal+Int(Adv Pym)", "approvedDate": "2017-11-13", "loanAmount": "7359.97", "loanBalance": "0.0", "monthsToPay": "36", "interestRate": "12.0", "dueDate": "2020-12-13", "status": "Closed", "lastPayment": "2020-01-10" }, { "id": "4970",…

VIEW QUESTION
Back To Top
Search