SearchStateManager<T> constructor
SearchStateManager<T> ({
- required AsyncSnapshot<
List< initialState,T> > - required Future<
List< future(T> >- String input
- void onData(
- AsyncSnapshot<
List< T> >
- AsyncSnapshot<
- void onError(
- AsyncSnapshot<
List< T> >
- AsyncSnapshot<
- void onLoad(
- AsyncSnapshot<
List< T> >
- AsyncSnapshot<
- void onEmptyData(
- AsyncSnapshot<
List< T> >
- AsyncSnapshot<
Implementation
SearchStateManager({
required this.initialState,
required this.future,
this.onData,
this.onError,
this.onLoad,
this.onEmptyData,
}) : super(SearchState(snapshot: initialState));