update method

  1. @override
void update(
  1. FlowCallback<T> callback
)
override

update can be called to update the current flow state. update takes a closure which exposes the current flow state and is responsible for returning the new flow state.

When update is called, the builder method of the corresponding FlowBuilder will be called with the new flow state.

Implementation

@override
void update(FlowCallback<T> callback) {
  _state = callback(_state);
}