update method

void update(
  1. void fn(
    1. T? value
    )
)

Implementation

void update(void fn(T? value)) {
  fn(value);
  refresh();
}