onCubitChanged method

void onCubitChanged(
  1. CubitEntity cubitUpdated
)

Implementation

void onCubitChanged(CubitEntity cubitUpdated) {
  final cubits = {...state.cubits};
  assert(cubits[cubitUpdated.id] != null);
  cubits[cubitUpdated.id] = cubitUpdated;
  emit(state.copyWith(cubits: {...cubits}));
}