SearchStateManager<T> constructor

SearchStateManager<T>({
  1. required AsyncSnapshot<List<T>> initialState,
  2. required Future<List<T>> future(
    1. String input
    )?,
  3. void onData(
    1. AsyncSnapshot<List<T>>
    )?,
  4. void onError(
    1. AsyncSnapshot<List<T>>
    )?,
  5. void onLoad(
    1. AsyncSnapshot<List<T>>
    )?,
  6. void onEmptyData(
    1. AsyncSnapshot<List<T>>
    )?,
})

Implementation

SearchStateManager({
  required this.initialState,
  required this.future,
  this.onData,
  this.onError,
  this.onLoad,
  this.onEmptyData,
}) : super(SearchState(snapshot: initialState));