Flutter: testing Flutter: testing flutter flutter

Flutter: testing


You have two different instances of UserApi. Them having the same property values does not make them equal.

You would need to implement hashCode and operator==.By default only comparing the references to the same instance of an object are considered equal (because they are identical)

See also