update abstract method

void update(
  1. T updater(
    1. T value
    )
)

Update value using a function

Implementation

void update(T Function(T value) updater);