CollectionData

data class CollectionData<T>(val data: Flow<List<T>>, val idProvider: IdProvider<T, *>?, val id: String?)

This data class groups all basic elements of a data collection in one object.

Parameters

data

one-way data binding Flow of a List of some data type T as data source

idProvider

an optional IdProvider to identify items.

id

an optional id for the root Tag of the data collection

Constructors

Link copied to clipboard
constructor(data: Flow<List<T>>, idProvider: IdProvider<T, *>?, id: String?)

Properties

Link copied to clipboard
val data: Flow<List<T>>
Link copied to clipboard
val id: String?
Link copied to clipboard
Link copied to clipboard
val isSame: (T?, T) -> Boolean

This property holds a function that can be called to check for equality for two elements of T.