flutter dart get the current timestamp

static int currentTimeMillis() {
    return new DateTime.now().millisecondsSinceEpoch;
  }

Related: flutter dart get the current timestamp