update method

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

Implementation

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