RepositoryState<Data>.ready constructor

const RepositoryState<Data>.ready({
  1. required Data data,
  2. required RepositoryDatasource source,
})

Creates a RepositoryState that indicates that the repository is ready. It contains the data loaded by the repository. It also contains the source of the data.

Implementation

const factory RepositoryState.ready({
  required Data data,
  required RepositoryDatasource source,
}) = RepositoryStateReady<Data>;