title: "Invalid constructor name" error in Dart/Flutter
body: <p>I'm starting to study flutter, which in turn uses Dart as its language, so I can say I'm learning both at the same time. I'm using Android Studio 3.0.1 for that.</p>
  
  <p>I've been building an app as a proof of concept for work and have found an error that has dumbfounded me.</p>
  
  <p>I have a custom class that is the basis of another class which contains a list of the first. This class will, subsequently, be used to feed a ListView in my app.</p>
  
  <p>When I try to add a new element of that custom class to the list, I get an error message stating that the variable of the list I've created is an "invalid constructor name"! It's not eve supposed to be a constructor, so I don't get what is going on.</p>
  
  <p>I don't know if I'm getting some of the language's features wrong or if my OOP knowledge (which is a bit rusty at the moment, and which I'm trying to get up to speed, after all I'm mainly a NATURAL/ADABAS programmer) is not yet good enough to get what I did wrong, so any insights would be most appreciated.</p>
  
  <p>Here's a snippet of the code  with the classes in question.</p>
  
  <pre><code>class Aluno {
    final int numDiario;
    final String nomeAluno;
    final String codAluno;
  
    Aluno ({
      this.numDiario,
      this.nomeAluno,
      this.codAluno,
    });
  }
  
  class Alunos  {
    final _alunos = &lt;Aluno&gt;[];
  
    static int nDiario;
  
    static int _incNumDiario(){
      return nDiario++;
    }
  
    static var nAl = new WordPair.random();
    static String nomeAluno = '$nAl.first $nAl.second';
  
    Aluno aluno = new Aluno(numDiario: _incNumDiario(),nomeAluno:  nomeAluno, codAluno: nDiario.toString());
  
    _alunos.add(aluno); //Here's where the error happens!
  }
  </code></pre>
  
  <p>And here's the error I get:</p>
  
  <pre><code>error: Invalid constructor name. (invalid_constructor_name at [dd_movel] lib\abas\frequencia\linha_presencao.dart:32)
  </code></pre>
  
  <p>This is the "flutter doctor" output:</p>
  
  <pre><code>C:\Users\p001385\flutter\bin\flutter.bat --no-color doctor
  Doctor summary (to see all details, run flutter doctor -v):
  [√] Flutter (Channel beta, v0.1.5, on Microsoft Windows [versÃ£o 6.1.7601], locale pt-BR)
  [√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
  [√] Android Studio (version 3.0)
  [√] Connected devices (1 available)
  
  • No issues found!
  Process finished with exit code 0
  </code></pre>
  
  <p>Thank you all!</p>