when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult create(
    1. bool loading,
    2. String projectId,
    3. String? facilityId,
    4. DateTime? dateOfEvaluation,
    5. String? healthFacilityCord,
    6. String? referredBy,
    7. HFReferralModel? hfReferralModel,
    8. bool viewOnly,
    ),
  2. required TResult persisted(
    1. String projectId,
    2. String? facilityId,
    3. DateTime? dateOfEvaluation,
    4. String? healthFacilityCord,
    5. String? referredBy,
    6. HFReferralModel? hfReferralModel,
    7. bool viewOnly,
    ),
  3. required TResult view(
    1. String projectId,
    2. String? facilityId,
    3. DateTime? dateOfEvaluation,
    4. String? healthFacilityCord,
    5. String? referredBy,
    6. HFReferralModel? hfReferralModel,
    7. bool viewOnly,
    ),
  4. required TResult error(
    1. String? error
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(
          bool loading,
          String projectId,
          String? facilityId,
          DateTime? dateOfEvaluation,
          String? healthFacilityCord,
          String? referredBy,
          HFReferralModel? hfReferralModel,
          bool viewOnly)
      create,
  required TResult Function(
          String projectId,
          String? facilityId,
          DateTime? dateOfEvaluation,
          String? healthFacilityCord,
          String? referredBy,
          HFReferralModel? hfReferralModel,
          bool viewOnly)
      persisted,
  required TResult Function(
          String projectId,
          String? facilityId,
          DateTime? dateOfEvaluation,
          String? healthFacilityCord,
          String? referredBy,
          HFReferralModel? hfReferralModel,
          bool viewOnly)
      view,
  required TResult Function(String? error) error,
}) =>
    throw _privateConstructorUsedError;