Skip to content

Commit 5d098ef

Browse files
committed
forgot list construction
1 parent 392310d commit 5d098ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/model/inheriting_container.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ import 'package:meta/meta.dart';
2020
/// [hasModifier] override is not necessary for this mixin.
2121
mixin Constructable on InheritingContainer {
2222
List<Constructor> _constructors;
23-
Iterable<Constructor> get constructors => _constructors ??= element
23+
Iterable<Constructor> get constructors => _constructors ??= [...element
2424
.constructors
25-
.map((e) => ModelElement.from(e, library, packageGraph) as Constructor);
25+
.map((e) => ModelElement.from(e, library, packageGraph) as Constructor)];
2626

2727
@override
2828
bool get hasPublicConstructors => publicConstructorsSorted.isNotEmpty;

0 commit comments

Comments
 (0)