Default value

Uninitialized variables have an initial value of null. Even variableswith numeric types are initially null, because numbers—like everythingelse in Dart—are objects.

  1. int lineCount;
  2. assert(lineCount == null);

Note: Production code ignores the assert() call. During development, on the other hand, assert(condition) throws an exception if condition is false. For details, see Assert.