Image of codeI am having a problem getting the value of a string into another string. I am passing a text value from one screen to another and I can display the passed it into a final string and show it in a widget. I want to further use this value, but I cannot set this value to a string variable.
final String text;
ParcelDetail({Key key, @required this.text}) : super(key: key);
String ref = text; //error in this line