whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? handleSubmit(
    1. TaskModel task,
    2. bool isEditing,
    3. BoundaryModel boundaryModel,
    4. bool navigateToSummary,
    5. HouseholdMemberWrapper? householdMemberWrapper,
    )?,
  2. TResult? handleSearch(
    1. TaskSearchModel taskSearch
    )?,
  3. TResult? selectFutureCycleDose(
    1. int dose,
    2. ProjectCycle cycle,
    3. IndividualModel? individualModel
    )?,
  4. TResult? setActiveCycleDose(
    1. int lastDose,
    2. int lastCycle,
    3. IndividualModel? individualModel,
    4. ProjectTypeModel projectType,
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function(
          TaskModel task,
          bool isEditing,
          BoundaryModel boundaryModel,
          bool navigateToSummary,
          HouseholdMemberWrapper? householdMemberWrapper)?
      handleSubmit,
  TResult? Function(TaskSearchModel taskSearch)? handleSearch,
  TResult? Function(
          int dose, ProjectCycle cycle, IndividualModel? individualModel)?
      selectFutureCycleDose,
  TResult? Function(int lastDose, int lastCycle,
          IndividualModel? individualModel, ProjectTypeModel projectType)?
      setActiveCycleDose,
}) =>
    throw _privateConstructorUsedError;