Comment obtenir un timestamp dans Dart?

J'ai été en apprentissage Dart, mais je ne sais pas comment générer un timestamp. J'ai essayé ceci:

void main() {
  print((new Date()).millisecondsSinceEpoch);
}

Grâce à l'IDE, j'ai pu en arriver là, mais
J'obtiens une erreur déroutant:

Exception: No such method: 'Date'

Aider?

InformationsquelleAutor | 2012-10-28