CodeLens class

A code lens represents a {@link Command} that should be shown along with source text, like the number of references, a way to run tests, etc.

A code lens is unresolved when no command is associated to it. For performance reasons the creation of a code lens and resolving should be done to two stages.

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

CodeLens(Range range, [Command? command])
factory

Properties

command Command

Available on CodeLens, provided by the CodeLens$Typings extension

The command this code lens represents.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isResolved bool

Available on CodeLens, provided by the CodeLens$Typings extension

true when there is a command associated.
no setter
range Range

Available on CodeLens, provided by the CodeLens$Typings extension

The range in which this code lens is valid. Should only span a single line.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited