We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffdceb2 commit 784a245Copy full SHA for 784a245
1 file changed
lib/src/must_call_in_constructor.dart
@@ -24,8 +24,16 @@ class MustCallInConstructor {
24
/// Otherwise, it applies to the class even if it's abstract.
25
final bool concreteOnly;
26
27
+ /// A list of types that are exempt from this requirement.
28
+ /// If the class using the mixin is a subtype of any of these types,
29
+ /// the requirement is considered satisfied.
30
+ final List<Type> exceptions;
31
+
32
/// {@macro hook_installer}
- const MustCallInConstructor({this.concreteOnly = true});
33
+ const MustCallInConstructor({
34
+ this.concreteOnly = true,
35
+ this.exceptions = const [],
36
+ });
37
}
38
39
0 commit comments