interfaces property Null safety

List<InterfaceTypeDefinition?> interfaces

Implementation

List<InterfaceTypeDefinition?> get interfaces => interfaceNames
    .map((i) => getType(i.name) as InterfaceTypeDefinition?)
    .toList();