Row( mainAxisAlignment: MainAxisAlignment.center, children: [ Padding( padding: const EdgeInsets.all(8.0), child: Icon( password[0] == null ? unchangedPassword : changedPassword, color: Colors.white, size: 20, ),
Can someone please explain why I can't write an if statement that checks if the value of the index is equal to a null value?
password
? Add more details.. – Tirth Patel