when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult saveFacilityDetails(
    1. DateTime dateOfEvaluation,
    2. String facilityId,
    3. String? healthFacilityCord,
    4. String? referredBy,
    ),
  2. required TResult createReferralEntry(
    1. HFReferralModel hfReferralModel
    ),
  3. required TResult viewReferral(
    1. HFReferralModel hfReferralModel
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(DateTime dateOfEvaluation, String facilityId,
          String? healthFacilityCord, String? referredBy)
      saveFacilityDetails,
  required TResult Function(HFReferralModel hfReferralModel)
      createReferralEntry,
  required TResult Function(HFReferralModel hfReferralModel) viewReferral,
}) =>
    throw _privateConstructorUsedError;