update abstract method

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

Implementation

void update(T Function(T) updater);