EventUpdater<V> typedef

EventUpdater<V> = V Function(V initialValue, V preValue, Event event)

Updates a value when a event occurs.

The initialValue is the value set in the specification. The preValue is previous value before this update.

Make sure the return value is a different instance from initialValue or preValue.

Implementation

typedef EventUpdater<V> = V Function(V initialValue, V preValue, Event event);