update method

void update({
  1. required Value value,
})

Update the current value

Implementation

void update({required Value value}) {
  emit(state.toUpdated(hasValue: true, value: value));
}