concept var keyword in category dart

appears as: var keyword
Dart in Action

This is an excerpt from Manning's book Dart in Action.

Java and C# developers are generally comfortable with type systems, classes, inheritance, and other such concepts. JavaScript developers, on the other hand, range from UI designers who copy and paste code to add interactivity to a web page (and have never used a type) to seasoned JavaScript programmers who understand closures and prototypical inheritance. To help with this developer diversity, Dart has an optional typing feature, which allows developers to specify absolutely no types (by using the var keyword, as in JavaScript), or use type annotations everywhere (such as String, int, Object), or use any mixture of the two approaches.

A.1.1. Declaring variables with the var keyword or type name

When you use the var keyword to declare a variable, you aren’t specifying any specific type information. If you use a type, such as int, instead of var, you’re declaring that as a developer you expect the variable to contain an integer value. The Dart tools can validate that the variable only ever contains an integer, but the language itself doesn’t enforce this.