NUIListViewModel<T, C> constructor

NUIListViewModel<T, C>({
  1. String? id,
  2. bool skeletalLoading = false,
  3. bool paginationLoading = false,
  4. List<T>? newData,
  5. bool reachedEnd = false,
  6. bool swipeRefreshing = false,
  7. bool success = false,
  8. List<T>? data,
  9. bool appending = false,
  10. String? message,
  11. String? errorCode,
  12. C? cursor,
  13. UpdateListMap? updateCheckedMap,
  14. UpdateListMap? updateConfigMap,
})

Implementation

NUIListViewModel({
  this.id,
  this.skeletalLoading = false,
  this.paginationLoading = false,
  this.newData,
  this.reachedEnd = false,
  this.swipeRefreshing = false,
  this.success = false,
  this.data,
  this.appending = false,
  this.message,
  this.errorCode,
  this.cursor,
  this.updateCheckedMap,
  this.updateConfigMap
}){
  id = randomUUID();
}