location property

Location? get location

An optional {@link Location source code location} that represents this label part.

The editor will use this location for the hover and for code navigation features: This part will become a clickable link that resolves to the definition of the symbol at the given location (not necessarily the location itself), it shows the hover that shows at the given location, and it shows a context menu with further code navigation commands.

Note that this property can be set late during {@link InlayHintsProvider.resolveInlayHint resolving} of inlay hints.

Implementation

_i3.Location? get location => _i5.getProperty(
      this,
      'location',
    );
set location (Location? value)

Implementation

set location(_i3.Location? value) {
  _i5.setProperty(
    this,
    'location',
    value ?? _i6.undefined,
  );
}