CubitEntity constructor

const CubitEntity({
  1. required ID id,
  2. required String name,
  3. required ID initialState,
  4. required Map<ID, CubitStateEntity> states,
  5. required Map<ID, WorkflowEntity> workflows,
  6. ID? currentState,
  7. List<CubitStateEntity> stateHistory = const [],
})

Implementation

const CubitEntity({
  required this.id,
  required this.name,
  required this.initialState,
  required this.states,
  required this.workflows,
  this.currentState,
  this.stateHistory = const [],
});