callMethod method

InvokeMethodExpr callMethod(
  1. dynamic name,
  2. List<Expression> params, {
  3. bool checked = false,
  4. 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);
}