ExtractMethodRefactoringOptions class

Create a method whose body is the specified expression or list of statements, possibly augmented with a return statement.

It is an error if the range contains anything other than a complete expression (no partial expressions are allowed) or a complete sequence of statements.

Inheritance

Constructors

ExtractMethodRefactoringOptions({String? returnType, bool? createGetter, String? name, List<RefactoringMethodParameter>? parameters, bool? extractAll})

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.
final
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.
final
hashCode int
The hash code for this object.
no setterinherited
name String?
The name that the method should be given.
final
parameters List<RefactoringMethodParameter>?
The parameters that should be defined for the method.
final
returnType String?
The return type that should be defined for the method.
final
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
toMap() Map
override
toString() String
A string representation of this object.
inherited

Operators

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