First way to create dynamic variable is using 'dymaic' keywrod:spa
dynamic a = 123; a = '123';
Second way is using 'var' but unassign any value:code
void main() { var a; a = '123'; }