onCubitsChanged method
Implementation
void onCubitsChanged(List<CubitEntity> cubits) {
emit(state.copyWith(
cubits: Map.fromEntries(cubits.map((e) => MapEntry(e.id, () => e))),
instantiatedCubits: Map.fromEntries(cubits.map((e) => MapEntry(e.id, e))),
));
}