Method class Null safety
- Implemented types
- Annotations
Constructors
- Method([void updates(MethodBuilder)])
-
factory
- Method.returnsVoid([void updates(MethodBuilder)?])
-
factory
Properties
-
annotations
→ BuiltList<
Expression> -
Annotations as metadata on the node.
read-only
- body → Code?
-
Body of the method.
read-only
- closure → Expression
-
This method as a closure.
read-only
-
docs
→ BuiltList<
String> -
Dart docs.
read-only
- external → bool
-
Whether the method should be prefixed with
external
.read-only - genericClosure → Expression
-
This method as a (possibly) generic closure.
read-only
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- lambda → bool?
-
Whether this method is a simple lambda expression.
read-only
- modifier → MethodModifier?
-
Whether this method is
async
,async*
, orsync*
.read-only - name → String?
-
Name of the method or function.
read-only
-
optionalParameters
→ BuiltList<
Parameter> -
Optional parameters.
read-only
-
requiredParameters
→ BuiltList<
Parameter> -
Required parameters.
read-only
- returns → Reference?
-
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- static → bool
-
Whether this method should be prefixed with
static
.read-only - type → MethodType?
-
Whether this is a getter or setter.
read-only
-
types
→ BuiltList<
Reference> -
Generic type parameters.
read-only
Methods
-
accept<
R> (SpecVisitor< R> visitor, [R? context]) → R -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
rebuild(
dynamic updates(MethodBuilder)) → Method -
Rebuilds the instance.
inherited
-
toBuilder(
) → MethodBuilder -
Converts the instance to a builder
B
.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited