W3cubDocs

/Dart 2

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 : new List.from(args.map(_convertToJS))));

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-js/JsFunction/apply.html