Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature-request] Support Extraction to superclass #36199

Stargator opened this Issue Mar 13, 2019 · 0 comments


None yet
2 participants
Copy link

Stargator commented Mar 13, 2019

Thank you for taking the time to file an issue!

In order to route, prioritize, and act on this, please include:

  • Dart SDK Version: 2.2.0

I think it would be helpful if developers could extract a method or variable to the super class or parent class. Assuming the class is not part of the Dart SDK.

I see it like this:

class polygon {
// lots of methods/variables 😄 

class square extends polygon {
    calculateArea(int sideLength) => sqrt(sideLength);

After extracting the method, calculateArea() now resides in the polygon class. Thinking about this, it would be a good idea to provide options for making the extracted method an abstract or implemented method depending on use cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.