In flutter, NavigationRail.destinations[0].label.toString() returns 'Text{"Text")' instead of "Text"
I use NavigationRail & NavigationBar in my project. When I try to read the label of one of the designations attached to NavigationRail, I get Text("Text") instead of "Text". Here is an example code: onDestinationSelected: (value) { context.goNamed(destinations[value].label.toString()); // output…