writeOverride abstract method

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

Appends a placeholder for an override of the specified inherited element.

If provided, writes 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. If setSelection is true, then the cursor will be placed in the body of the override.

Implementation

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