CargoTransportUiState

data class CargoTransportUiState(val isLoading: Boolean = true, val imageModel: ImageModel? = null, val error: Throwable? = null)

Holds the UI state for the first view during cargo transport. The state reflects whether the image is still loading, has been loaded successfully, or encountered an error. Navigation buttons are enabled only when an image model is available.

Constructors

Link copied to clipboard
constructor(isLoading: Boolean = true, imageModel: ImageModel? = null, error: Throwable? = null)

Properties

Link copied to clipboard
Link copied to clipboard

the throwable captured when loading fails, or null on success.

Link copied to clipboard
val imageModel: ImageModel?

the loaded image data, or null if loading has not completed.

Link copied to clipboard

true while the image is being read from the raw resource.