remoteState<C extends StateController<S>, S> method

Future<S> remoteState<C extends StateController<S>, S>()

This function returns the current state of a cubit as a Future value

Example

final category = await remoteState<SearchCategoryCubit, SearchCategory>();

Implementation

Future<S> remoteState<C extends StateController<S>, S>() =>
    _remoteData<C>().then((value) => value.state);