update method

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

Implementation

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