DeliverInterventionState constructor

const DeliverInterventionState({
  1. @Default(false) bool loading,
  2. @Default(false) bool isEditing,
  3. @Default(1) int cycle,
  4. @Default(1) int dose,
  5. List<ProjectCycle>? pastCycles,
  6. @Default(true) bool hasCycleArrived,
  7. @Default(false) bool isLastDoseOfCycle,
  8. HouseholdMemberWrapper? householdMemberWrapper,
  9. List<TaskModel>? tasks,
  10. List<ProjectCycleDelivery>? futureDeliveries,
  11. List<TaskModel>? futureTask,
  12. TaskModel? oldTask,
})

Implementation

const factory DeliverInterventionState({
  @Default(false) bool loading,
  @Default(false) bool isEditing,
  @Default(1) int cycle,
  @Default(1) int dose,
  List<ProjectCycle>? pastCycles,
  @Default(true) bool hasCycleArrived,
  @Default(false) bool isLastDoseOfCycle,
  HouseholdMemberWrapper? householdMemberWrapper,
  List<TaskModel>? tasks,
  List<ProjectCycleDelivery>? futureDeliveries,
  List<TaskModel>? futureTask,
  TaskModel? oldTask,
}) = _DeliverInterventionState;