update method

void update(
  1. CommentModel cb(
    1. CommentModel state
    )
)

Updatees the state with the new value.

Implementation

void update(CommentModel Function(CommentModel state) cb) =>
    state = cb(state);