We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 392310d commit 5d098efCopy full SHA for 5d098ef
lib/src/model/inheriting_container.dart
@@ -20,9 +20,9 @@ import 'package:meta/meta.dart';
20
/// [hasModifier] override is not necessary for this mixin.
21
mixin Constructable on InheritingContainer {
22
List<Constructor> _constructors;
23
- Iterable<Constructor> get constructors => _constructors ??= element
+ Iterable<Constructor> get constructors => _constructors ??= [...element
24
.constructors
25
- .map((e) => ModelElement.from(e, library, packageGraph) as Constructor);
+ .map((e) => ModelElement.from(e, library, packageGraph) as Constructor)];
26
27
@override
28
bool get hasPublicConstructors => publicConstructorsSorted.isNotEmpty;
0 commit comments