selectRebuild<S> method

M selectRebuild<S>({
  1. required S select(
    1. M message
    ),
  2. required void updates(
    1. S selected
    ),
})

Implementation

M selectRebuild<S>({
  required S Function(M message) select,
  required void Function(S selected) updates,
}) {
  return deepRebuild(
    (message) => updates(
      select(message),
    ),
  );
}