AssistContributorMixin class abstract

A partial implementation of an AssistContributor that provides a utility method to make it easier to add assists.

Clients may not extend or implement this class, but are allowed to use it as a mix-in when creating a subclass of AssistContributor.

Implemented types

Constructors

AssistContributorMixin()

Properties

collector AssistCollector
The collector to which assists should be added.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addAssist(AssistKind kind, ChangeBuilder builder, {List<Object>? args}) → void
Add an assist. Use the kind of the assist to get the message and priority, and use the change builder to get the edits that comprise the assist. If the message has parameters, then use the list of args to populate the message.
computeAssists(covariant AssistRequest request, AssistCollector collector) Future<void>
Contribute assists for the location in the file specified by the given request into the given collector.
inherited
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