writeOverride abstract method

void writeOverride(
  1. ExecutableElement element, {
  2. StringBuffer? displayTextBuffer,
  3. bool invokeSuper = false,
})

Append a placeholder for an override of the specified inherited element. If provided, write a string value suitable for display (e.g., in a completion popup) in the given displayTextBuffer. If invokeSuper is true, then the corresponding super.name() will be added in the body.

Implementation

void writeOverride(
  ExecutableElement element, {
  StringBuffer? displayTextBuffer,
  bool invokeSuper = false,
});