Success

class Success<T>(val data: List<T>) : AutocompleteResult<T>

Represents a successful autocomplete operation.

Constructors

Link copied to clipboard
constructor(data: List<T>)

Properties

Link copied to clipboard
val data: List<T>

The result of the autocomplete operation.

Link copied to clipboard
open val isError: Boolean

Check if the result was unsuccessful.

Functions

Link copied to clipboard

Get the error or null if the result was successful.

Link copied to clipboard
open fun getOrNull(): List<T>?

Get the result list data or null if the result was unsuccessful.

Link copied to clipboard

Perform an action if the result was unsuccessful.

Link copied to clipboard
open fun onSuccess(block: (List<T>) -> Unit): AutocompleteResult<T>

Perform an action if the result was successful.