callMethod method
InvokeMethodExpr
callMethod(
- dynamic name,
- List<
Expression> params, { - bool checked = false,
- List<
NamedExpr> namedParams = const [],
Calls a method on an expression result.
If checked
is specified, the call will make a safe null check before
calling using '?' operator.
Implementation
InvokeMethodExpr callMethod(
dynamic /* String | BuiltinMethod */ name,
List<Expression> params, {
bool checked = false,
List<NamedExpr> namedParams = const [],
}) {
return InvokeMethodExpr(this, name, params,
checked: checked, namedArgs: namedParams);
}