DecorationOptions class

Represents options for a specific decoration in a {@link TextEditorDecorationTypedecoration set}.

Available extensions
Annotations
  • @JS()
  • @staticInterop
  • @anonymous

Constructors

DecorationOptions.new({Range? range, Object? hoverMessage, DecorationInstanceRenderOptions? renderOptions})
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
hoverMessage Object?

Available on DecorationOptions, provided by the DecorationOptions$Typings extension

A message that should be rendered when hovering over the decoration.
getter/setter pair
range Range

Available on DecorationOptions, provided by the DecorationOptions$Typings extension

Range to which this decoration is applied. The range must not be empty.
getter/setter pair
renderOptions DecorationInstanceRenderOptions?

Available on DecorationOptions, provided by the DecorationOptions$Typings extension

Render options applied to the current decoration. For performance reasons, keep the number of decoration specific options small, and use decoration types wherever possible.
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