Skip to content

Add a quick fix to import libraries with prefixes when the library name matches #41515

Closed

Description

@bwilkerson

Given the following code:

var min = math.min(0, 1);

there should be a quick fix to define math by importing dart:math. This should minimally work for all of the dart: libraries, but it would also be good if it worked for packages that are already listed as dependencies. For example,

var current = path.current;

should have a quick fix to import package:path/path.dart.

Activity

  1. added
    legacy-area-analyzer
    devexp-quick-fix
    on Apr 15, 2020
  2. added
    P3
    type-enhancement
    on Nov 16, 2021
  3. added
    contributions-welcome
    on May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3contributions-welcomedevexp-quick-fixlegacy-area-analyzertype-enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions