First way to create dynamic variable is using 'dymaic' keywrod:
dynamic a = 123; a = '123';
Second way is using 'var' but unassign any value:
void main() { var a; a = '123';}
本文共 232 字,大约阅读时间需要 1 分钟。
First way to create dynamic variable is using 'dymaic' keywrod:
dynamic a = 123; a = '123';
Second way is using 'var' but unassign any value:
void main() { var a; a = '123';}
转载于:https://www.cnblogs.com/Answer1215/p/11568819.html