TypedSnapshot uses the on keyword to enforce that the mixin is only used with children of Component2. However, because PropTypes is implemented in UiComponent2, TypedSnapshot does not mix with UiComponent2 well. This is related to https://github.com/dart-lang/sdk/issues/38098.
Changes
Remove the on keyword, and ultimately the dependency upon using the mixin with Component2 based classes.
Motivation
TypedSnapshot uses
the on keyword to enforce that the mixin is only used with children ofComponent2
. However, becausePropTypes
is implemented inUiComponent2
,TypedSnapshot
does not mix withUiComponent2
well. This is related to https://github.com/dart-lang/sdk/issues/38098.Changes
on
keyword, and ultimately the dependency upon using the mixin withComponent2
based classes.@aaronlademann-wf @greglittlefield-wf @kealjones-wk @sydneyjodon-wk