must_be_immutable in flutter 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]