I'm struggling to port javascript to dart..
My problem is how to create javascript object. original javascript code is
function Beagle() {
this.argv_ = null;
this.io = null;
};
Beagle.prototype.run = function() {
this.io = this.argv_.io.push();
};
Now I have Beagle object. and it should be context['Beagle'] maybe?
how can I create javascript obejct?? and with prototype?