Skip to content

[linter] prefer_non_nullable_members #59791

@stephane-archer

Description

@stephane-archer
 class LutPreviewImagesChangeNotifier extends ChangeNotifier {
  final PreviewManager? _previewManager;

  LutPreviewImagesChangeNotifier(PreviewGenerator previewGenerator)
      : _previewManager = PreviewManager(previewGenerator);
}

this lint should suggest _previewManager to be of type final PreviewManager because it can't be null here

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-linterIssues with the analyzer's support for the linter packagelinter-lint-proposaltype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions