whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. 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. TResult? persisted(
    1. String projectId,
    2. String? facilityId,
    3. DateTime? dateOfEvaluation,
    4. String? healthFacilityCord,
    5. String? referredBy,
    6. HFReferralModel? hfReferralModel,
    7. bool viewOnly,
    )?,
  3. TResult? view(
    1. String projectId,
    2. String? facilityId,
    3. DateTime? dateOfEvaluation,
    4. String? healthFacilityCord,
    5. String? referredBy,
    6. HFReferralModel? hfReferralModel,
    7. bool viewOnly,
    )?,
  4. TResult? error(
    1. String? error
    )?,
})
inherited

Implementation

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