CustomLintContext constructor

  1. @internal
CustomLintContext(
  1. LintRuleNodeRegistry registry,
  2. void _addPostRunCallback(
    1. void cb()
    ),
  3. Map<Object, Object?> sharedState,
  4. Pubspec? pubspec,
)

Create a CustomLintContext.

Implementation

@internal
CustomLintContext(
  this.registry,
  this._addPostRunCallback,
  this.sharedState,
  Pubspec? pubspec,
) : pubspec = pubspec ?? Pubspec('test_project');