Update the post model with the provided callback function.
void update(PostModel Function(PostModel state) cb) { state = cb(state); }