File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lib/src/lints/avoid_using_api Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class AvoidUsingApiLinter {
20
20
});
21
21
22
22
/// The identifier for the default constructor
23
- static const String defaultConstructorIdentifier = '()' ;
23
+ static const String _defaultConstructorIdentifier = '()' ;
24
24
25
25
/// Access to the resolver for this lint context
26
26
final CustomLintResolver resolver;
@@ -194,7 +194,7 @@ class AvoidUsingApiLinter {
194
194
String className,
195
195
String source,
196
196
) {
197
- if (identifier == defaultConstructorIdentifier ) {
197
+ if (identifier == _defaultConstructorIdentifier ) {
198
198
_banDefaultConstructor (className, source, entryCode);
199
199
return ;
200
200
}
@@ -348,7 +348,7 @@ class AvoidUsingApiLinter {
348
348
context.registry.addInstanceCreationExpression ((node) {
349
349
String ? expectedConstructorName;
350
350
351
- if (identifier != defaultConstructorIdentifier ) {
351
+ if (identifier != _defaultConstructorIdentifier ) {
352
352
expectedConstructorName = identifier;
353
353
}
354
354
You can’t perform that action at this time.
0 commit comments