I am trying to invoke the const Duration constructor from a Dart native extension. How would I use the Dart_New C function to invoke this constructor?
I've tried just invoking it like any other Dart_New call but I get an Incorrect number of arguments error.
The following code fragment is from the great oracle.dart library for interfacing with Oracle databases. It reads an Oracle date from the result set and creates a new Dart
DateTimeobject with 6 constructor arguments.