displayString2 abstract method

String displayString2({
  1. bool multiline = false,
  2. bool preferTypeAlias = false,
})

The presentation of this element as it should appear when presented to users.

If multiline is true, then the string may be wrapped over multiple lines with newlines to improve formatting. For example, function signatures may be formatted as if they had trailing commas.

If preferTypeAlias is true and the element represents a type defined by a type alias, then the name of the type alias will be used in the returned string rather than the name of the type being aliased.

Clients should not depend on the content of the returned value as it will be changed if doing so would improve the UX.

Implementation

String displayString2({bool multiline = false, bool preferTypeAlias = false});