DocumentColorProvider class

The document color provider defines the contract between extensions and feature of picking and modifying colors in the editor.

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

Constructors

DocumentColorProvider.new({FutureOr<List<ColorInformation>> provideDocumentColors(TextDocument, CancellationToken)?, FutureOr<List<ColorPresentation>> provideColorPresentations(Color, dynamic, CancellationToken)?})
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
provideColorPresentations FutureOr<List<ColorPresentation>> Function(Color, dynamic, CancellationToken)

Available on DocumentColorProvider, provided by the DocumentColorProvider$Typings extension

getter/setter pair
provideDocumentColors FutureOr<List<ColorInformation>> Function(TextDocument, CancellationToken)

Available on DocumentColorProvider, provided by the DocumentColorProvider$Typings extension

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