List<Parameter> get parameters => type.parameters .map((p) => modelBuilder.from(p, library) as Parameter) .toList(growable: false);