dynamic apply(
List args,
{thisArg}
)

Invokes the JavaScript function with arguments args. If thisArg is supplied it is the value of this for the invocation.

Source

/**
 * Invokes the JavaScript function with arguments [args]. If [thisArg] is
 * supplied it is the value of `this` for the invocation.
 */
dynamic apply(List args, {thisArg}) native "JsFunction_apply";