only static method

HistoryObserverConfig only({
  1. bool startImmediately = true,
  2. bool providerInit = false,
  3. bool providerDispose = false,
  4. bool change = false,
  5. bool rebuild = false,
  6. bool actionDispatched = false,
  7. bool actionFinished = false,
  8. bool actionError = false,
  9. bool message = false,
})

Saves only the specified events.

Implementation

static HistoryObserverConfig only({
  bool startImmediately = true,
  bool providerInit = false,
  bool providerDispose = false,
  bool change = false,
  bool rebuild = false,
  bool actionDispatched = false,
  bool actionFinished = false,
  bool actionError = false,
  bool message = false,
}) {
  return HistoryObserverConfig(
    startImmediately: startImmediately,
    saveProviderInitEvents: providerInit,
    saveProviderDisposeEvents: providerDispose,
    saveChangeEvents: change,
    saveRebuildEvents: rebuild,
    saveActionDispatchedEvents: actionDispatched,
    saveActionFinishedEvents: actionFinished,
    saveActionErrorEvents: actionError,
    saveMessageEvents: message,
  );
}