felangel / equatable

A Dart package that helps to implement value based equality without needing to explicitly override == and hashCode.

Home Page:https://pub.dev/packages/equatable

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Full Output toString

Prn-Ice opened this issue · comments

Is your feature request related to a problem? Please describe.
I was recently comparing two classes, the objects were different, but I couldn't see which because the current toString displays only the first and last set of props. I have had to manually print out all props when I faced this.

Describe the solution you'd like
Would be nice to have a toString which prints out props in a propName: prop\n format for visual comparisons.

Describe alternatives you've considered
I have used the following function whenever I had said issue.

for (var i = 0; i < staffEntity.props.length; i++) {
        print('${staffEntity.props[i].toString()}\n');
      }

Printing toMap is sufficient, thanks.