Answers for "flutter class must be immutable issue"

1

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]
Posted by: Guest on February-21-2021

Code answers related to "flutter class must be immutable issue"

Code answers related to "Dart"

Browse Popular Code Answers by Language