I am facing this error, even though I have written the 'if statement'.
I also tried adding an 'else statement' like else{return Text(" "); }
but then it completely ignores the 'if statement' and shows only the else statement in the Output, which is a Text widget.
I am also facing this error in the file 'db_helper.dart' when writing await dbClient!.query('cart');