ListState<Record, Query> constructor

ListState<Record, Query>({
  1. required Query query,
  2. List<Record>? records,
  3. ListStage stage = const IdleListStage(),
})

Creates a list state.

Implementation

ListState({
  required this.query,
  List<Record>? records,
  ListStage stage = const IdleListStage(),
})  : recordsStore = records,
      super(
        stage: stage,
        isInitialized: records != null,
        isEmpty: records?.isEmpty ?? true,
      );