cubit_base 0.0.1
cubit_base: ^0.0.1 copied to clipboard
cubit_base is a library for using easy fetch and paginate data from api with cubit
Usage #
With fetchWithBase:
Fetcher.fetchWithBase<T>(
fetcher: useCases.call(...),
state: state.<targetState>,
emitter: (newData) => emit(state.copyWith(<targetState>: newData)),
onStatusChange: (status) => print(status),
);