writeOverride2 abstract method

  1. @experimental
void writeOverride2(
  1. ExecutableElement2 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

@experimental
void writeOverride2(
  ExecutableElement2 element, {
  StringBuffer? displayTextBuffer,
  bool invokeSuper = false,
  bool setSelection = true,
});