compilers property Null safety

List<Compiler> compilers

Implementation

List<Compiler> get compilers {
  return types
      .where((b) => b.isSubclassOf(reflectClass(Compiler)) && !b.isAbstract)
      .map((b) => b.newInstance(Symbol.empty, []).reflectee as Compiler)
      .toList();
}