MethodReferenceExpression class

An expression that implicitly makes reference to a method.

Clients may not extend, implement or mix-in this class.

Implementers

Constructors

MethodReferenceExpression()

Properties

bestElement MethodElement
Return the best element available for this expression. If resolution was able to find a better element based on type propagation, that element will be returned. Otherwise, the element found using the result of static analysis will be returned. If resolution has not been performed, then null will be returned. [...]
read-only
propagatedElement MethodElement
Return the element associated with the expression based on propagated types, or null if the AST structure has not been resolved, or there is no meaningful propagated element to return (e.g. because this is a non-compound assignment expression, or because the method referred to could not be resolved). [...]
read / write
staticElement MethodElement
Return the element associated with the expression based on the static types, or null if the AST structure has not been resolved, or there is no meaningful static element to return (e.g. because this is a non-compound assignment expression, or because the method referred to could not be resolved).
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited