I have converted my project to null-safety Dart 2. I have been working through issues since the conversion. Right now, I need to change this line
clientFNameController.text = widget.trxns!['clientFName'];
so that
clientFNameController.text = null;
This is the line where the controller is declared:
final clientNameController = TextEditingController();
I have tried this
clientFNameController?.text = widget.trxns!['clientFName'];
and this
clientFNameController.text = widget.trxns?['clientFName'];
How do I write the this line
clientFNameController.text = widget.trxns['clientFName'];
so this can be true
clientFNameController.text = null;