This is a typical situation in jQuery:
$(\".myClass\").myFunction({ aKey: \'some value\' });
H
How about use DQuery instead.
DQuery is a porting of jQuery in Dart.