You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generated freezed classes declare an operator == override which expands the parameter type (from Object, on Object.==) to a nullable type (dynamic). For example:
No Dart runtime passes a null value to an == implementation. Explicitly expanding the parameter type does not seem to serve a purpose, and can lead to confusion that the function will ever see a null argument value. These implementation should not have an expanded parameter type of dynamic.
To Reproduce
Generate a freezed class.
Expected behavior
The class should not expand operator =='s parameter type from Object.
The text was updated successfully, but these errors were encountered:
Generated freezed classes declare an
operator ==
override which expands the parameter type (fromObject
, onObject.==
) to a nullable type (dynamic
). For example:No Dart runtime passes a
null
value to an==
implementation. Explicitly expanding the parameter type does not seem to serve a purpose, and can lead to confusion that the function will ever see anull
argument value. These implementation should not have an expanded parameter type ofdynamic
.To Reproduce
Generate a freezed class.
Expected behavior
The class should not expand
operator ==
's parameter type fromObject
.The text was updated successfully, but these errors were encountered: