maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<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
    )?,
  5. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<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,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;