process method

  1. @override
void process(
  1. Event<S> event
)
override

Updates the state of the state management instance.

When the method is executed, the passed event.call is called with the current state of the state management instance and the return value is taken as the new state of the state management instance. The event.call must be executed synchronously.

Implementation

@override
process(event) {
  processor(event);
  listener?.call(snapshot, event, UniqueKey());
}