when<TResult extends Object?> method
TResult
when<TResult extends Object?>({
- required TResult create(),
- required TResult persisted(),
- required TResult view(),
- required TResult error(
- 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;