Skip to content

Add @super macro. #4103

@ykmnkmi

Description

@ykmnkmi

To add additional documentation in subclasses, I know the @template macro exists.

For example:

class A {
  /// Prints `a`.
  void log() {
    print('a');
  }
}

class B extends A {
  /// {@super} Then prints `b`.
  void log() {
    print('b');
  }
}

No new line after the macro call, so it shows: "Prints a. Then prints b."

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-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