I'm doing something like this:
new A()
..methodA()
..methodB()
.toString();
Should this return the result of toString()? Currently it's returning the new A object.
I'm doing something like this:
new A()
..methodA()
..methodB()
.toString();
Should this return the result of toString()? Currently it's returning the new A object.
In your code
toString()is applied on the result ofmethodB(). It's like you are doing :To do what you want, you have to do something like :