Success

class Success<T>(data: T) : Resource<T>

Represents a successful result with data.

This state indicates that the operation completed successfully and fresh data is available.

Parameters

T

The type of data.

data

The successfully fetched data.

Constructors

Link copied to clipboard
constructor(data: T)

Properties

Link copied to clipboard
val data: T?

The data result of the operation (can be null for initial loading states).

Link copied to clipboard

The error that occurred during the operation (only set in Error state).