Menu

waiting answer September 16, 2020

what's the difference between the codes?

I am new to dart. I have a question regarding the code.

    List<String> names = new List<String>();
    It can type the same as,
    var names = <String>[];

so what's the difference between the codes?
 

Answers

Please Login to Post the answer

Leave an Answer