flutter class must be immutable issue code example
Example: must be immutable flutter
//How to fix Flutter immuttable problem in StatelessWidget?
//Solution:
var string="it throws error in StatelessWidget"
//Stateless widgets are immutable so we have to define all variables with Final
final string="it's solution"
//By adding final and [by removing var fixes errors in stateless widgets]