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
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 changebuilder
to get the edits that comprise the assist. If the message has parameters, then use the list ofargs
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 givencollector
.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