equalTo method
Checks the equlity of two specs.
Equality is very important for specs that a custom spec should override this method. Usually two specs are equal if they are of the same type and have same properties.
It is used by ==.
Implementation
@override
bool equalTo(Object other) =>
other is BasicLineShape &&
smooth == other.smooth &&
loop == other.loop &&
deepCollectionEquals(dash, other.dash);