whenOrNull<TResult extends Object?> method

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

Implementation

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