Tuesday, 27 August 2013

How can I pass self reference to object in dart

How can I pass self reference to object in dart

I have a class Field and has a copy() method, I want to pass self
reference to new object but Dart editor seem not allow. How can I pass
self reference to new object like java?
class Field
Field copy() {
return new Field(this);
}
}

No comments:

Post a Comment