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