QueryCubit<T> constructor

QueryCubit<T>([
  1. AsyncQueryResult<T>? initialState
])

Create new Cubit

Optional initialState can be used to set the initial state of the Cubit. PendingResult is used if not specified

Implementation

QueryCubit([AsyncQueryResult<T>? initialState])
    : super(initialState ?? AsyncQueryResult());