Use case
FlutterError is equatable, so we can easily write this in unit test:
XCTAssertEqual(error, expectedError)
But after migrating to pigeon, PigeonError is not equatable anymore, so we had to manually write PigeonError extension conformance, or manually compare the properties inside PigeonError.
More Context: flutter/packages#10980 (comment)
Proposal
Consider making PigeonError Equatable.
This is a breaking change, since if plugin authors already write the extension to conform PigeonError to Equatable, it would fail to compile.
Use case
FlutterErroris equatable, so we can easily write this in unit test:But after migrating to pigeon,
PigeonErroris not equatable anymore, so we had to manually writePigeonErrorextension conformance, or manually compare the properties insidePigeonError.More Context: flutter/packages#10980 (comment)
Proposal
Consider making
PigeonErrorEquatable.This is a breaking change, since if plugin authors already write the extension to conform
PigeonErrortoEquatable, it would fail to compile.