maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult saveComplaintType(
    1. String complaintType,
    2. String? otherComplaintDescription
    )?,
  2. TResult saveAddress(
    1. PgrAddressModel addressModel
    )?,
  3. TResult saveComplaintDetails(
    1. ComplaintsDetailsModel complaintsDetailsModel,
    2. BoundaryModel boundaryModel
    )?,
  4. TResult submitComplaint(
    1. String userId
    )?,
  5. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(String complaintType, String? otherComplaintDescription)?
      saveComplaintType,
  TResult Function(PgrAddressModel addressModel)? saveAddress,
  TResult Function(ComplaintsDetailsModel complaintsDetailsModel,
          BoundaryModel boundaryModel)?
      saveComplaintDetails,
  TResult Function(String userId)? submitComplaint,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;