Skip to content

Auto create super methods #4235

@feinstein

Description

@feinstein

When we override some Flutter life-cycle methods we have to always type a call to super and be aware if it's on the beginning or the end of the method, for example:

  @override
  void initState() {
    super.initState();
    // our code here
  }

  @override
  void dispose() {
   // our code here
    super.dispose();
  }

I think this could be automated when we use Ctrl+O to override the life-cycle methods, generating the overridden method, with the proper call to super and the caret at the right position.

Activity

devoncarew

devoncarew commented on Dec 19, 2019

@devoncarew
Member

👍

added this to the On Deck milestone on Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @devoncarew@feinstein

        Issue actions

          Auto create super methods · Issue #4235 · flutter/flutter-intellij