In Material3, why `TextFieldColors` is not a `data...
# compose
a
In Material3, why
TextFieldColors
is not a
data class
? They seem to be implementing the
equals
method by hand.
f
if you don't need all the extra baggage of a
data class
, you can use a regular class and implement those 2 methods yourself (
equals
and
hashCode
). On top of that, libraries should stay clear of `data class`es as a general rule
a
Why using a data class in libraries is a mistake? just because adding 1 variable in the future might break the code?
a
The very same article I read, but couldn;t find it.
Thank you!