I'm trying to study Dart and I noticed in the online documentation that if the class
has custom constructor
the example of initializing the class
is like this:
Employee emp = new Employee();
Now my question is what is the difference between this code and the previous one?
var emp = new Employee();
I tested both in online sandbox and constructors
are both invoked. When do I use which code?
PS I'm not sure if this was already asked since I don't know the term of it in Dart.