You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indeed, it's misleading and we should really be providing multiple arguments. We've been typically implementing variadic arguments as ~4 arguments in the SDK (callMethod from dart:js_interop_unsafe for example) so I'm tempted to keep it aligned there.
For example
Element
methods with variable arguments, instead of a single argument:generate rest arguments as optional positional arguments:
I have some cases with 2 ~ 4 arguments. Currently, I use extension types and
dart:js_interop
(target.callMethod('append'.toJS, node1, node2);
)Also,
nodes
for a single argument name sounds like it expect list of nodes, instead one node.The text was updated successfully, but these errors were encountered: