ExtractMethodFeedback class

extractMethod feedback

{ "offset": int "length": int "returnType": String "names": List

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

Inheritance

Constructors

ExtractMethodFeedback(int offset, int length, String returnType, List<String> names, bool canCreateGetter, List<RefactoringMethodParameter> parameters, List<int> offsets, List<int> lengths)
ExtractMethodFeedback.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object? json)
factory

Properties

canCreateGetter bool
True if a getter could be created rather than a method.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
length int
The length of the expression or statements that will be extracted.
getter/setter pair
lengths List<int>
The lengths of the expressions or statements that would be replaced by an invocation of the method. The lengths correspond to the offsets. In other words, for a given expression (or block of statements), if the offset of that expression is offsetsi, then the length of that expression is lengthsi.
getter/setter pair
names List<String>
The proposed names for the method.
getter/setter pair
offset int
The offset to the beginning of the expression or statements that will be extracted.
getter/setter pair
offsets List<int>
The offsets of the expressions or statements that would be replaced by an invocation of the method.
getter/setter pair
parameters List<RefactoringMethodParameter>
The proposed parameters for the method.
getter/setter pair
returnType String
The proposed return type for the method. If the returned element does not have a declared return type, this field will contain an empty string.
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
toJson() Map<String, Object>
Returns a JSON presentation of the object.
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override