update method

void update(
  1. Settings update(
    1. Settings current
    )
)

Implementation

void update(Settings Function(Settings current) update) {
  state = update(state);
}