only static method
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,
);
}