whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? handleSubmit(
    1. ReferralModel referral,
    2. bool isEditing
    )?,
  2. TResult? handleSearch(
    1. ReferralSearchModel referrals
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function(ReferralModel referral, bool isEditing)? handleSubmit,
  TResult? Function(ReferralSearchModel referrals)? handleSearch,
}) =>
    throw _privateConstructorUsedError;