apply method

dynamic apply (List args, { dynamic thisArg })

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

Implementation

dynamic apply(List args, {thisArg}) => _convertToDart(JS(
    '',
    '#.apply(#, #)',
    _jsObject,
    _convertToJS(thisArg),
    args == null ? null : List.from(args.map(_convertToJS))));