WhenChangeFilter<S> typedef
WhenChangeFilter<S> =
Object? Function(S state)
A function that extracts a value from a state to monitor for changes.
The returned value is used to determine if the widget should rebuild. The comparison handles primitives, null values, and collections automatically.
Example:
WhenChangeFilter<UserState> nameFilter = (state) => state.name;
Implementation
typedef WhenChangeFilter<S> = Object? Function(S state);