Difference between "var" and "dynamic" type in Dart?
If a variable is declared as dynamic, its type can change over time.
dynamic a = 'abc'; //initially it's a string
a = 123; //then we assign an int value to it
a = true; //and then a bool
If you declare a variable as a var, once the assigned type can...
sourav091.hashnode.dev3 min read