Represents an asynchronous operation that can be in one of four states: loading, success, error, or empty.
The type of data held by a successful result.
The operation completed but produced no meaningful data.
The operation failed with an exception describing the cause.
The operation is currently in progress and has not yet produced a value.
The operation completed successfully with data.
Extracts the data from a Result.Success, or returns null for all other states.
null
Transforms a successful result using block, propagating Result.Loading, Result.Empty, and Result.Error unchanged.