ExtractMethodOptions class

extractMethod options

{ "returnType": String "createGetter": bool "name": String "parameters": List

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

Inheritance

Constructors

ExtractMethodOptions(String returnType, bool createGetter, String name, List<RefactoringMethodParameter> parameters, bool extractAll)
ExtractMethodOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object? json)
factory
ExtractMethodOptions.fromRefactoringParams(EditGetRefactoringParams refactoringParams, Request request)
factory

Properties

createGetter bool
True if a getter should be created rather than a method. It is an error if this field is true and the list of parameters is non-empty.
getter/setter pair
extractAll bool
True if all occurrences of the expression or statements should be replaced by an invocation of the method. The expression or statements used to initiate the refactoring will always be replaced.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
name String
The name that the method should be given.
getter/setter pair
parameters List<RefactoringMethodParameter>
The parameters that should be defined for the method.
getter/setter pair
returnType String
The return type that should be defined for the method.
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