maybeMap<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
  1. TResult saveComplaintType(
    1. ComplaintsRegistrationSaveComplaintTypeEvent value
    )?,
  2. TResult saveAddress(
    1. ComplaintsRegistrationSaveAddressEvent value
    )?,
  3. TResult saveComplaintDetails(
    1. ComplaintsRegistrationSaveComplaintDetailsEvent value
    )?,
  4. TResult submitComplaint(
    1. ComplaintsRegistrationSubmitComplaintEvent value
    )?,
  5. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
  TResult Function(ComplaintsRegistrationSaveComplaintTypeEvent value)?
      saveComplaintType,
  TResult Function(ComplaintsRegistrationSaveAddressEvent value)? saveAddress,
  TResult Function(ComplaintsRegistrationSaveComplaintDetailsEvent value)?
      saveComplaintDetails,
  TResult Function(ComplaintsRegistrationSubmitComplaintEvent value)?
      submitComplaint,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;