MethodBuilder class Null safety

Implemented types

Constructors

MethodBuilder()
factory

Properties

annotations ListBuilder<Expression>
Annotations as metadata on the node.
read / write
body Code?
Body of the method.
read / write
docs ListBuilder<String>
Dart docs.
read / write
external bool
Whether the method should be prefixed with external.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
lambda bool?
Whether this method is a simple lambda expression.
read / write
modifier MethodModifier?
Whether this method is async, async*, or sync*.
read / write
name String?
Name of the method or function.
read / write
optionalParameters ListBuilder<Parameter>
Optional parameters.
read / write
requiredParameters ListBuilder<Parameter>
Required parameters.
read / write
returns Reference?
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
static bool
Whether this method should be prefixed with static.
read / write
type MethodType?
Whether this is a getter or setter.
read / write
types ListBuilder<Reference>
Generic type parameters.
read / write

Methods

build() Method
Builds.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
replace(Method value) → void
Replaces the value in the builder with a new one.
inherited
toString() String
A string representation of this object.
inherited
update(void updates(MethodBuilder)?) → void
Applies updates.
override

Operators

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