Hi i want to know if theres a way to get a value from variable inside another one in dart language like this:
Var a = “data”; Var b = “a”;
I have the name of variable i need inside another. How Can we do this on dart? Like using $$variable in php or innerHTML in JavaScript.
I don't know the name of variable just know that the name is on another variable. Thanks
In php i do this:
$var1=“Aaa”; $var2=“var1”;
Echo($$var2);
This shows “aaa”. I want to do this on dart
final first = 'first variable';
final second = 'second variable with $first';
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.