Closed bselwe closed 3 years ago
Implements value-based equality for DashOffset.
DashOffset
This change is to allow for testing parseDashOffset in flutter_svg by simply comparing the test results. For instance:
parseDashOffset
flutter_svg
final XmlStartElementEvent abs = parseEvents('<stroke stroke-dashoffset="20" />').first as XmlStartElementEvent; expect( parseDashOffset(abs.attributes.toAttributeMap()), equals( const DashOffset.absolute(20) ), );
@dnfield
@dnfield Could we publish this soon to be able to merge https://github.com/dnfield/flutter_svg/pull/605?
Implements value-based equality for
DashOffset
.This change is to allow for testing
parseDashOffset
influtter_svg
by simply comparing the test results. For instance: