getCurrentStateByCubitId method

CubitStateEntity getCurrentStateByCubitId({
  1. required ID cubitID,
})

Implementation

CubitStateEntity getCurrentStateByCubitId({required ID cubitID}) {
  final cubit = state.getCubitByID(cubitID);
  return cubit.state;
}