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