DataCollection<T>.fromState constructor

DataCollection<T>.fromState({
  1. required DataCollectionState<T> state,
  2. SortAction<T>? defaultSort,
  3. StateCallback<DataCollectionState<T>>? onStateChanged,
  4. StateCallback<DataCollectionState<T>>? onActualize,
  5. bool autoActualize = true,
})

Implementation

DataCollection.fromState({
  required DataCollectionState<T> state,
  this.defaultSort,
  StateCallback<DataCollectionState<T>>? onStateChanged,
  StateCallback<DataCollectionState<T>>? onActualize,
  this.autoActualize = true,
}) : _state = state;