getCachedSuccess method

T? getCachedSuccess()

Returns the cached value of the SuccessCommand, or null if not found.

This method retrieves the value associated with a successful command execution from the cache. If the command is not a SuccessCommand, it returns null.

Implementation

T? getCachedSuccess() => _cachedSuccessCommand?.value;